Make SSH stop asking for a login password
Posted by jason on June 13, 2011, 10:15 p.m.
Here's how to set things up so that typing "ssh user@host" will just log you in and not ask for a password. You should probably only do this with trusted machines.
- Open a terminal
- Go to your .ssh folder
- Check if you have a 'id_rsa.pub' (or 'id_dsa.pub') file there. If not, do this:
- Run ssh-copy-id
- Test
cd ~/.ssh
ssh-keygen -t rsa
Press enter a bunch of times, even when it asks for a password.
ssh-copy-id -i id_rsa.pub user@host
ssh user@host
You should have been logged in without being prompted for a password. If not, go to step 1 or google the error message you got.