How to Generate SSH Key in Linux Dedicated Server ?

The SSH Key can be generated using the “ssh-keygen” command via the command line interface. A few things will be asked to you in order to create a successful SSH Key. Please follow the command and procedure shown below:

[email protected]: ssh-keygen -t dsa

Once you input the above command, hit the Enter button. It will give you the following output:

Enter file in which the key has to be saved (/home/user/.ssh/id_dsa)

Press Enter on your keyboard to proceed.

Enter passphrase (empty for no passphrase): userpassword
Enter same passphrase again: userpassword
Your identification has been saved in /home/user/.ssh/id_dsa.
Your public key has been saved in /home/user/.ssh/
The key fingerprint is:

06:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 [email protected]

You will see the key fingerprint similar to the above. The passphrase you entered will be asked to you whenever you connect your dedicated server via SSH. So, enter a password

Powered by BetterDocs