How to Generate SSH Key in Linux Dedicated Server ?
The SSH Key are often generated using the “ssh-keygen” command via the command line interface. Some things are asked to you so as to create a successful SSH Key. Please follow the command and procedure shown follow:
user@localhost: ssh-keygen -t dsa
Once you input the above command, press 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/id_dsa.pub.
The key fingerprint is:
06:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost
You will see the key fingerprint the same as the on top of. The passphrase you entered are going to be asked to you whenever you connect your dedicated server via SSH. So, enter a password simple to remember and hard to guess for others.