How to use SSH public key?

The Knowledgebase provides a database of answers to many Technical questions.

How to use SSH public key?

Postby FTP » Fri Oct 01, 2010 4:28 am

Step 1 - Generate an SSH key pair
You can use Putty (puttygen.exe) to generate SSH key pair, you may download puttygen for free from here
1-1. Download and start the puttygen.exe.
1-2. In the "Parameters" section choose SSH-2 RSA and press Generate.
1-3. Move your mouse randomly in the small screen in order to generate the key pairs.
1-4. Type in the passphrase and confirm it. The passphrase is used to protect your key. You will be asked for it when you connect via SSH.
1-5. Click "Save private key" to save your private key (for client side).
1-6. Click "Save public key" to save your public key (for server side).

Step 2 - Send the public key to the server

Step 3 - Server administrator specify the public key to an user
At "Domains->Users->Edit User->Limit->SSH public key path"

Then you can login the server with SSH using your private key.


BTW, ssh-keygen under Linux can be used to generate the key pair too, like this:
Code: Select all
ssh-keygen -t rsa
FTP
Site Admin
 
posts 1200
 
joined Tue Sep 29, 2009 6:09 am

Return to Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest