Pages

Friday, December 24, 2010

Automatic Login through SSH

[root@server2~]#ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.2.202
21
root@192.168.2.202's password:
Now try logging into the machine, with "ssh '192.168.2.202'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@server2~]#ssh 192.168.2.202
Last login: Thu Dec 23 18:25:19 2010 from 192.168.2.200
[root@server3 ~]#