Disclaimer!If you are using CVS on a machine that is connecting
to a repository via SSH, you will want to avoid
typing your password every time. This is a safe
way to do this.
Generate Keys and Copy to Host
Run ssh-keygen -t rsa
When prompted for a file name, enter, say, identity
Select a password for the key (not your dr1 password!).
Run scp identity.pub yourname@dr1:.ssh/
Type your password on dr1.
Run ssh yourname@dr1 to open a shell on dr1.
(Type your password to login as you normally would).
Append this public key to your list of authorized keys cat .ssh/identity.pub >> .ssh/authorized_keys OR cat .ssh/identity.pub >> .ssh/authorized_keys2 depending on your system.
Exit the shell.
Test it!
Run ssh yourname@dr1
Enter the passphrase for the key you generated. The
shell on dr1 should open without prompting for your dr1
password.
From Now On:
Open a shell/terminal.
Run ssh-agent tcsh (or bash instead of tcsh).
Run ssh-add Then type the key passphrase
at the prompt.
Now you can ssh, scp or cvs without typing anything
from here on in this terminal.