Tuesday, June 28, 2011

SSH Without Password


  1. Run the following command on the client
      ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -P ''
    File id_dsa and id_dsa.pub will be created inside $HOME/.ssh
  2. Copy the id_dsa.pub to the server's .ssh directory
      ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
  3. You can try ssh to the server from the client and no password will be needed
      ssh user@server

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.