How to SSH Linux to Linux no Password
On the client run
it prompts you for where you would like to store your private and public key
also for a pass phrase
if you saved your keys to other than the default location or you would like to manually add the keys into the host for any reason.
1) navigate to the location of your .pub file
2) copy it to your host machine
3) on the host navigate to where the file got copied to in this case
4) Manually append to your authorized_keys file
5) test with
alternatively if you saved your keys in the dafault location and your servers can see wachother type
it will prompt you for the password for that account on the host machine
you can test by typing
If all is well you should have ssh access to the machine without any password.
=)
ssh-keygen
it prompts you for where you would like to store your private and public key
also for a pass phrase
if you saved your keys to other than the default location or you would like to manually add the keys into the host for any reason.
1) navigate to the location of your .pub file
2) copy it to your host machine
scp id_rsa.pub root@host:/root/.ssh/
3) on the host navigate to where the file got copied to in this case
cd /root/.ssh/
4) Manually append to your authorized_keys file
cat id_rsa.pub >> authorized_keys
5) test with
ssh root@host
alternatively if you saved your keys in the dafault location and your servers can see wachother type
ssh-copy-id username@host
it will prompt you for the password for that account on the host machine
you can test by typing
ssh username@host
If all is well you should have ssh access to the machine without any password.
=)