How to use SSH Public Key Authentication?

The Knowledgebase provides a database of answers to many Technical questions.
Post Reply
FTP
Site Admin
Posts: 2144
Joined: Tue Sep 29, 2009 6:09 am

How to use SSH Public Key Authentication?

Post by FTP »

Step 1 - Generate an SSH key pair
You can use Putty (puttygen.exe) to generate SSH key pair, you may download this tool here.
1-1. Download and start the puttygen.exe.
1-2. In the "Parameters" section choose 2048 bits RSA and press "Generate".
1-3. Move the mouse randomly over the blank area in order to generate SSH key pair.
1-4. Type in the passphrase (can be empty) and confirm it. The passphrase is used to protect your key, you will be asked for it during the SFTP connection.
1-5. Click "Save private key" to save your private key (for SFTP client).
1-6. Click "Save public key" to save your public key (for Wing FTP Server).

Step 2 - Enable the option "Domain > Users > Edit a user > Limit > SSH Public Key Authentication" in WingFTP Administration, and specify the public key path.

Step 3 - Add the generated private key in the SFTP client and then you can login the server.


BTW, ssh-keygen (in Linux system) can be used to generate SSH key pair too, you can use it like following:

Code: Select all

ssh-keygen -t rsa
Post Reply