Friday, November 29, 2013

SSH : pass wordless login.

[rajusa10@RHEL-6 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/rajusa10/.ssh/id_rsa):
Created directory '/home/rajusa10/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/rajusa10/.ssh/id_rsa.
Your public key has been saved in /home/rajusa10/.ssh/id_rsa.pub.
The key fingerprint is:
7a:69:78:8a:b1:a8:1c:a7:30:6e:8d:58:f3:02:b9:7c rajusa10@RHEL-6
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|                 |
|                 |
| .      S        |
|o o    o .       |
|==o+. o =        |
|*==E.+ =         |
|o=o.o .          |
+-----------------+


cat .ssh/id_rsa.pub | ssh rajusa10@dev01 'cat >> .ssh/authorized_keys'

[rajusa10@RHEL-6 ~]$ ssh dev01

|-----------------------------------------------------------------------------|

Last login: Thu Nov 21 11:47:21 2013 from gettoitwellorg.com
-bash-3.2$

No comments: