Passwordless Login Using SSH

Computer c1 – connect from this computer

Computer c2 – connect to this computer

1. Connect to c1
2. type: ssh-keygen -t rsa -b 2048
* default directory for keyfiles will be ~/.ssh/
* if you do not want to be prompted, leave passphrase blank
3. copy the contents of .ssh/id_rsa.pub (there should only be one line)
4. place this line on c2, in ~/.ssh/authorized_keys

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>