In this post I will explain how to generate a unique pair of ssh-key for logging into remote server. The original post can be found here.
Very often when we login into remote server, we do not only need to type the
ssh command but also to enter the password which might be difficult to remember. With ssh-key you can generate a unique pair of key, so the server (say
b) when understand that you are connecting it from trusted machine (say
Below I will explain the the procedure step by step.
Step 1. Generate the private-public key pair
Then you will see the following output:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory ‘/home/a/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved…
View original post 171 more words