Thursday, 21 November 2013

ssh key hashing in UNIX

process:-

root@nosxprrsnp1:~/.ssh# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:

13:65:6c:dc:35:f0:91:f6:18:a2:a9:11:31:a5:b1:37 root@nosxprrsnp03
root@nosxprrsnp2:~/.ssh# cat /root/.ssh/id_rsa.pub | ssh root@10.22.3.241 "cat - >> /.ssh/authorized_keys"
Password:
root@nosxprrsnp03:~/.ssh# ssh 10.22.3.241
Last login: Wed Nov 20 15:16:49 2013 from 192.168.41.35
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
You have new mail.