Friday, May 9, 2014

SSH passwordless login: Solaris 10

root@solaris01: / $ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (//.ssh/id_dsa):
Created directory '//.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in //.ssh/id_dsa.
Your public key has been saved in //.ssh/id_dsa.pub.
The key fingerprint is:
1d:c6:10:63:39:db:2c:69:8a:cc:c4:ae:75:15:74:b6 root@solaris02
root@solaris02: / $ ll
total 981

root@solaris01: .ssh $ cat id_dsa.pub
ssh-dss AAAAB3NzaC1kc3MAAACBANZP8v0o/NFHt+1Tu3BISCnKoJ4SqonlAZcTm25sT1zbrmCSjv1WDa54/fuRDmqsavIymj+HmGAK1pNmh8ThuKTqznGpA+6BW7tJXG6EIB1+5iZPMkIhRJzDIvWycGumG/BjKvCdLus3rtKaV6ShAmYUZhsFHetepGfWFdQhr7i9AAAAFQCPqVyVY4XjhzaK2KkRSl1r3IjDkQAAAIBLSn4I6BR2SOqYIH3WL2herepkTr5f3y+hzLjpI91S6MEcj9XljjAg9M8TQPPMImWlKnOl/2A3JGeeH79fUVUeLIBobDJ2wyJZyiDdFPhkCpGGfwHaNhc+a81YutgiVXMS5VmmSmmFgAAAIAUQT27kUeBa4hrbYaHAdzeAACNjlf5ODXBcsmuJTaEW2D2sroeJ1pfsEiL/BhJlpX99NT6HsuxYM4GO1zutFv3TX97YMrKJRa2Yxy5cRlGLoStmTRhktyXDbdHpWALsutMyocFIkLZTte0e1fL9zMWNbCg2qzl+oiUFyw9o9tX+A== root@solaris01

on solaris02 host:

chmod go-w /.ssh

paste this key in the autorized_keys on solaris02 

save the file and initiate the passwordless login

root@solaris01: / $ ssh solaris02
Last login: Fri May  9 18:09:24 2014 from solaris01
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
root@solaris02: / $

thats it.


No comments: