Tuesday, March 15, 2005
Make ssh not prompt
Quick summary of how to make ssh not prompt for a password:
1. Create a public/private key pair (ssh-keygen).
ssh-keygen -t rsa
you do not need to input the passphrase
it will create the id_rsa.pub file under ~/.ssh directory
2. Copy id_rsa.pub file to the remote SSH servers to the ~/.ssh/authorized_keys file.
scp ~/.ssh/id_rsa.pub
3. Run ssh-agent if not already running.
4. Run ssh-add.
You can skip 3 and 4 if you create the keys in step 1 without passphrase.