WinSCP: Private key not displayed
Note for Windows users — converting your SSH key to PuTTY (.ppk) format
In WinSCP, you may find that your private key does not appear in the file picker, even though the file is present in the folder. The reason is simple:
- WinSCP shows only PuTTY keys (
.ppk) by default in the file picker. - SSH keys from Windows / OpenSSH (e.g.
lesbos_sg01) are not shown.
For WinSCP to use the key, it must first be converted into the PuTTY format
(.ppk).
How to convert your key to .ppk format (Windows)
Step 1 – Open PuTTYgen
Open the Windows Start menu, type PuTTYgen and launch it.
Step 2 – Load the private key
- Click Load.
- In the file dialog, change the file type filter (bottom right) to All Files (*.*).
- Select your key, e.g.:
C:\Users\<Name>\.ssh\lesbos_sg01
Step 3 – Save the key as .ppk
- Click Save private key.
- Save the file as:
lesbos_sg01.ppk - (You can ignore the warning about saving without a passphrase — confirm with Yes.)
Step 4 – Select it in WinSCP
In WinSCP:
Advanced → SSH → Authentication
Under Private key file, select the lesbos_sg01.ppk file you just saved.
Click OK and then Login.
If WinSCP prompts for a password, your private key is not being used. Please verify:
- The key is in
.ppkformat (not.pubor original OpenSSH). - The correct file path is selected in WinSCP.