Convert Putty registry entry for PPK to connect to MySQL server using MySQL Workbench on Windows

Abstract: Resolve MySQL Workbench SSH connection failures by converting PuTTY PPK keys to OpenSSH format using puttygen.

Created: 2026-09-11 by
MySQL Workbench requires an SSH key in OpenSSH format to authenticate with remote database servers. PuTTY uses its own proprietary .ppk format, which is incompatible with the standard SSH client libraries used by Workbench. You must convert your existing PuTTY private key into the OpenSSH format using the command-line tool provided with PuTTY. The conversion process involves locating the puttygen.exe utility within your PuTTY installation directory and running a specific command to transform the key file. This operation does not require you to regenerate the key or modify your server configuration; it simply changes the container format so that MySQL Workbench can read and use it for secure connections.

Locating the Conversion Tool

Before you can begin the conversion, you need to find the correct executable on your Windows machine. The tool required is called puttygen, which stands for PuTTY Key Generator. This tool is typically installed alongside the main PuTTY application. By default, the program is located in the C:\Program Files\PuTTY\ directory. If you installed PuTTY in a custom location, navigate to that folder instead. You are looking specifically for puttygen.exe. If you cannot find this file, ensure that you have the full suite of PuTTY tools installed, as sometimes only the basic plink.exe or putty.exe components are selected during a minimal installation.

Executing the Conversion Command

The most reliable method to convert the key is via the Command Prompt or PowerShell. Graphical interfaces can sometimes be confusing regarding path handling, so using the command line ensures accuracy. Open your terminal and navigate to the directory containing your .ppk file if it is not already there. Then, execute the following command structure:
puttygen.exe "C:\Path\To\Your\Key.ppk" -O private-openssh -o "C:\Path\To\New\Key.pem"
Replace the paths with your actual file locations. The argument -O private-openssh specifies the output format as OpenSSH compatible private key. The -o flag defines the output filename. It is common practice to save the new key with a .pem or .key extension to distinguish it from the original PuTTY format. If you encounter permission errors, ensure you are running the command prompt with appropriate access to write to the destination folder. The resulting file will be a plain text file containing the private key in the standard OpenSSH format.

Configuring MySQL Workbench

Once you have successfully generated the OpenSSH formatted key, you need to update your connection settings in MySQL Workbench. Open the application and go to the Database menu, then select Manage Connections. Select the connection profile that connects to your remote Linux MySQL server. Click on the Connection tab. In the SSH section, locate the field labeled Private Key File. By default, this might be empty or pointing to an old key. Click the browse button next to the Private Key File field and navigate to the new .pem or .key file you created in the previous step. Ensure that the Use SSH Tunneling checkbox is enabled. This tells Workbench to route the MySQL traffic through the SSH tunnel established by the key authentication. After selecting the key, click Test Connection. Workbench will attempt to log in to the remote host using the new key format. If successful, you will see a confirmation message indicating that the connection was established.

Troubleshooting Common Issues

Sometimes the conversion works, but the connection still fails. There are a few critical checks to perform if you do not get immediate success. First, verify the permissions of the new key file on your local Windows machine. While less strict than Linux, some SSH implementations may reject keys that are world-readable. Right-click the file, go to Properties, and ensure that only your user account has full control. Second, check the username. In MySQL Workbench, under the General tab, ensure the Username field matches the Linux user account associated with the SSH key. A mismatch here will cause authentication to fail even if the key is correct. Third, consider encryption algorithms. Older versions of OpenSSH may not support certain key types. If your original PuTTY key was generated with a very old algorithm, you might need to specify the type explicitly during conversion, though the default command usually handles modern standards correctly. For more complex network issues, such as timeouts or routing problems, you might want to review related troubleshooting guides. For instance, if you are using WSL or Vagrant environments, connectivity issues can stem from host networking configurations rather than key formats. You can explore solutions for these scenarios in our guide on Troubleshooting SSH WSL Machine: Can't Connect to Localhost or check Vagrant Fails to Connect to SSH on Linux Host, Works Fine on Windows Host if you are dealing with virtualized environments.

Verifying the Key Content

You can visually inspect the converted key to ensure it looks correct. Open the new .pem file in a text editor like Notepad. It should start with -----BEGIN OPENSSH PRIVATE KEY----- and end with -----END OPENSSH PRIVATE KEY-----. If it starts with -----BEGIN RSA PRIVATE KEY-----, the conversion did not produce the OpenSSH format required by newer versions of MySQL Workbench. In this case, repeat the conversion command and double-check the -O parameter. The OpenSSH format is distinct from the traditional PEM/RSA format and is necessary for compatibility with modern SSH clients integrated into database tools.

Frequently Asked Questions

Can I use the graphical Puttygen interface instead of the command line?

Yes, you can open puttygen.exe directly, load your .ppk file, and select Conversions > Export OpenSSH key from the menu. However, the command line is often faster for batch operations and avoids GUI dialog errors.

Do I need to reinstall PuTTY after converting the key?

No, the conversion creates a new file without modifying your existing PuTTY installation or registry entries. Your original .ppk file remains unchanged and usable for other applications like standard PuTTY sessions.

What if my MySQL server requires root login via SSH?

Most secure Linux distributions disable root SSH login by default. You should create a dedicated user for database administration and use that username in MySQL Workbench. If root is absolutely required, you must enable it in /etc/ssh/sshd_config on the server, which is generally discouraged for security reasons.

Why does MySQL Workbench still ask for a password after I set the key?

This usually indicates that the key is not loaded correctly or the passphrase is missing. If your private key was protected with a passphrase when created, you must enter that passphrase in the Workbench dialog box. Alternatively, check if the key file path contains spaces and ensure it is properly quoted in any scripts you might be using.

Is the converted key safe to share?

Never share your private key file. Anyone with access to the .pem or .key file can authenticate as the associated user on the remote server. Treat it with the same security precautions as your original .ppk file.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More