Friday, July 23, 2010

passwordless ssh login

globus@saturn:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/globus/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/globus/.ssh/id_rsa.
Your public key has been saved in /home/globus/.ssh/id_rsa.pub.
The key fingerprint is:
86:2b:cd:71:7b:9f:63:68:39:38:b8:6b:8d:b0:20:57 globus@saturn
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| |
| E . |
| . o S |
|. o .o = . |
| o ..o++...o |
| ..+ +.=.o. |
| .oo o oo. |
+-----------------+

globus@saturn:~$ scp /home/globus/.ssh/id_rsa.pub globus@10.151.35.203:/home/globus/.ssh/authorized_keys
globus@10.151.35.203's password:
id_rsa.pub 100% 395 0.4KB/s 00:00

globus@saturn:~$ ssh 10.151.35.203
Linux earth 2.6.32-23-generic-pae #37-Ubuntu SMP Fri Jun 11 09:26:55 UTC 2010 i686 GNU/Linux
Ubuntu 10.04 LTS

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/

System information as of Fri Jul 23 05:54:00 EDT 2010

System load: 0.14 Swap usage: 0% Users logged in: 1
Usage of /home: 4.4% of 35.77GB Temperature: 40 C
Memory usage: 4% Processes: 99

Graph this data and manage this system at https://landscape.canonical.com/

Last login: F
Publish Post
ri Jul 23 05:27:08 2010
globus@earth:~$
[yip2 it works, do it vice versa]

No comments:

Post a Comment