SSH without a Password

1. Log into the source computer (the computer you will use to log into the destination).

 

2. Check if  you already have an SSH key generated.  This key identifies you as the user.

ls ~/.ssh | grep id_rsa

 

If the above command returned results, do not create a new key and skip to step 4.

 

3. If the above command did not return any results, create a key.

cd ~/.ssh
ssh-keygen -t rsa
# Press [Enter] at all prompts to accept the default values.

 

4. Copy your key to the destination server as the user you will log in as

ssh-copy-id USER@IP.ADD.RE.SS
# Enter the user's password when prompted.

 

5.  That’s it!

You should now be able to use ssh USER@IP.ADD.RE.SS without being prompted for a password.

 

Sidebar