Password-less Login

From GeneNetworkMediaWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with 'To set up a password-less SSH Login: 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 …')
Line 1: Line 1:
-
To set up a password-less SSH Login:
 
-
 
ssh/sftp/scp from A to B without being prompted for a password:
ssh/sftp/scp from A to B without being prompted for a password:
-
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!

Revision as of 16:15, 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