20070824

ssh client bypass password authentication

client side
$ ssh-keygen -t rsa
$ scp ~/.ssh/id_rsa.pub servername:


server side
$ cat ~/id_rsa.pub >> ~/.ssh/authorized_keys

client side
$ ssh-agent $SHELL
$ ssh servername


DONE!

convenient way is to add `ssh-agent $SHELL` line in shell profile file.


2 comments:

  1. hey, could you possibly explain this further? I'm looking to perform commands on a remote computer via ssh, however I want to do this in an automated script. So passwords won't be able to be entered automatically.

    I do not want to store these passwords on the computer/server for security purposes.

    ReplyDelete
  2. Anonymous4:21 AM

    simply best described :)

    ReplyDelete