Password-less Login

From GeneNetworkMediaWiki

(Difference between revisions)
Jump to: navigation, search
 
Line 2: Line 2:
*Connect to A
*Connect to A
*type: ssh-keygen -t rsa
*type: ssh-keygen -t rsa
-
*default directory for keyfiles will be ~/.ssh/
+
**default directory for keyfiles will be ~/.ssh/
-
*if you do not want to be prompted, leave passphrase blank
+
**if you do not want to be prompted, leave passphrase blank
*copy the contents of .ssh/id_rsa.pub (there should only be one line)
*copy the contents of .ssh/id_rsa.pub (there should only be one line)
*place this line on B, in ~/.ssh/authorized_keys
*place this line on B, in ~/.ssh/authorized_keys
-
*That's it, you should now be able to ssh/sftp/scp from A to B without being prompted for a password!
+
That's it, you should now be able to ssh/sftp/scp from A to B without being prompted for a password!

Latest revision as of 16:18, 13 April 2011

ssh/sftp/scp from A to B without being prompted for a password:

  • Connect to A
  • type: ssh-keygen -t rsa
    • default directory for keyfiles will be ~/.ssh/
    • if you do not want to be prompted, leave passphrase blank
  • copy the contents of .ssh/id_rsa.pub (there should only be one line)
  • place this line on B, in ~/.ssh/authorized_keys

That's it, you should now be able to ssh/sftp/scp from A to B without being prompted for a password!

Personal tools