2.6.2.3.4. Configuring Key Authentication in WinSCP
When connecting via SFTP or SCP in WinSCP, key authentication can be used instead of passwords.
To set up key authentication, do the following:
- Generate a key pair in any of the ways.
- Add public key on the server.
- Convert the private key to the format
.ppk
using the utility PuTTYgen:- Run
puttygen.exe
. - In the menu, click "Conversions → Import key":
- Select the generated private key file
id_rsa
. - Clickon "Save private key":
- If a warning appears stating that a passphrase is missing, click "Yes"to continue without it (or you can press "No"to go back and specify it):
- Save the resulting private key in a safe place.
- When setting up a connection via SFTP or SCP in WinSCP, instead of specifying a password, do the following:
- Clickon "Yet…":
- In chapter "SSH → Authentication" use the button with three dots to specify in the field "Private key file" path to the previously saved private key and click "OK":
- Check the connection.