Showing posts with label CVS. Show all posts
Showing posts with label CVS. Show all posts

2013/08/14

Secure SSH, CVS, SCP Without Password Prompt

  1. Suppose the domain name of your server is server, and your login name loginname.
  2. On the client, generate a public and private key.
     ssh-keygen -C loginname@server -t dsa 
    When asked for a password, simply press return. The private key is stored in
     ~/.ssh/id_dsa

    and the public key in
     ~/.ssh/id_dsa.pub
  3. Copy the public file to the server with
     scp ~/.ssh/id_dsa.pub loginname@server:~/
  4. Login on the server with
     ssh loginname@server
  5. Append the copied file to ~/.ssh/authorized_keys with
     cat ~/id_dsa.pub >>~/.ssh/authorized_keys


▼ Click here to say thanks ▼