Tuesday, January 12, 2010

Fast SSH login (without passwords)

This simple tutorial has been extracted from "Peters's Blog". To avoid retype of password in ssh remote connections, follow the next steps:

  1. install openssh on client and server
  2. create ssh key using:
    ssh-keygen -t dsa
  3. Log into server using sftp
  4. copy the file id_dsa.pub (generated in the client) to the server
  5. on the server, merge contents of (client) id_dsa.pub with ~/.ssh/authorized_keys2
  6. From client, try logging in using ssh or sftp. Key should be accepted.