Wednesday, May 6, 2009

bypass password prompt in ssh connection

just developed a tool for checking out svn artifacts using the svn + ssh, and had to bypass the password prompt.  to enable this, execute the following commands in the remote server:

$ ssh-keygen -t rsa1
(accept paraphraseless input)

$ ssh-keygen -t rsa
(accept paraphraseless input)

$ ssh-keygen -t dsa
(accept paraphraseless input)

add to authorized_keys
$ cat >> authorized_keys

add to authorized_keys2
$ cat >> authorized_keys2

some svn pointers,
checkout: svn co
checkout with revision arg: svn co -r HEAD
checkout with user credentials: --username --password

take note:
in linux, for passwords with escape characters, enclose the password with double quotes and add a \ prefix to the special character (i.e., "ohmy\!password")

No comments: