passwordless SSH login
need to run scripts on another server but dont want to have to include your passwords in the scripts?
Use RSA logins instead.
This uses a pre-generated set of public RSA keys to authenticate sessions rather than having to enter passwords.
On the machine you wish to log in from:
$ ssh-keygen -t rsa
make sure to leave the passphrase blank!
$ ssh-copy-id -i ~/.ssh/id_rsa.pub username@server
you will be prompted for the user's password to authenticate the key transfer.
This message will appear when the transfer is complete:
"
Now try logging into the machine, with "ssh 'username@server'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
"
Now you have passwordless login working! Now you can just:
$ ssh username@server
and you will be logged in without the remote system asking for a password.
Script away!


Recent comments
39 weeks 3 days ago
49 weeks 4 days ago
49 weeks 4 days ago
1 year 2 weeks ago
1 year 9 weeks ago
1 year 11 weeks ago
1 year 23 weeks ago
1 year 23 weeks ago
1 year 24 weeks ago
1 year 38 weeks ago