Ke Kow

Thursday, August 07, 2008

Working with SSH Password less

Step-by-Step:
~~~~~~~~~~~~~


Make sure ssh2 is installed and following 3 parameters are set{specific to Solaris}:
$grep -i rsa /usr/local/ssh2/etc/ssh_config
RhostsRSAAuthentication yes
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa


#1 mkdir ~/.ssh
#2 chmod 700 ~/.ssh
#3 Generate rsa, leave all default values as is: ssh-keygen -t rsa
#4 ssh + login with prompted pwd
#5 Repeat #1, #2 & exit
#6 scp ~/.ssh/id_rsa.pub @:~/.ssh/authorized_keys
#7 Repeat #4
#8 chmod 600 ~/.ssh/authorized_keys

To Test:
~~~~~~~~
#1 ssh -2 ls -lart

<~ This should work ~>

Labels: , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home