Remote CVS using SSH

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

  1. Run ssh-keygen -t rsa
  2. When prompted for a file name, enter, say, identity
  3. Select a password for the key (not your dr1 password!).
  4. Run scp identity.pub yourname@dr1:.ssh/
  5. Type your password on dr1.
  6. Run ssh yourname@dr1 to open a shell on dr1. (Type your password to login as you normally would).
  7. 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.
  8. Exit the shell.

Test it!

  1. Run ssh yourname@dr1
  2. Enter the passphrase for the key you generated. The shell on dr1 should open without prompting for your dr1 password.

From Now On:

  1. Open a shell/terminal.
  2. Run ssh-agent tcsh (or bash instead of tcsh).
  3. Run ssh-add Then type the key passphrase at the prompt.
  4. Now you can ssh, scp or cvs without typing anything from here on in this terminal.