ssh

Private/public keys for automatic login

Login with private key on server containing your public key:

#user@local: ssh-keygen -t dsa
#user@local: scp id_dsa.pub user@remote:
#user@remote: cat id_dsa.pub >> .ssh/authorized_keys
#user@remote: chmod 640 .ssh/authorized_keys
#user@remote: chmod 700 .ssh
#user@local: ssh -v user@remote
  1. Create public and private key
  2. Copy the public key to the remote server
  3. Use the public to authorize
  4. Set permissions
  5. Test and debug
 
ssh.txt · Last modified: 2012/02/21 14:26 by jsc
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki