It’s handy sometimes to be able to ssh into another server without being prompted for a password each time especially when automating scripts across a network. All you need to do is generate encryption keys for the client machine you will be using (do not use passphrase) and copy the contents of your public key to the authorized_keys file on the server:

cat .ssh/id_rsa.pub | ssh user@server "cat >> /home/user/.ssh/authorized_keys"

No Comment.

Add Your Comment