[root@lowsend .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: e8:4e:30:47:8e:97:68:e4:c4:13:01:8b:20:45:65:19 root@lowsend |
[root@lowsend .ssh]# scp /root/.ssh/id_rsa.pub
192.168.10.80:/root/.ssh/test.pub root@192.168.10.80's password: id_rsa.pub 100% 222 0.0KB/s 00:00 |
[root@lowsend .ssh]# ssh 192.168.10.80 Enter passphrase for key '/root/.ssh/id_rsa': Last login: Sat Aug 13 21:17:21 2005 from 10.0.0.50 [root@localhost root]# |
[root@lowsend .ssh]# ssh-agent SSH_AUTH_SOCK=/tmp/ssh-Gkg16457/agent.16457; export SSH_AUTH_SOCK; SSH_AGENT_PID=16458; export SSH_AGENT_PID; echo Agent pid 16458; |
[root@lowsend .ssh]# ssh-add /root/.ssh/id_rsa Enter passphrase for /root/.ssh/id_rsa: Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa) |
[root@lowsend .ssh]# ssh 192.168.10.80 Last login: Sat Aug 13 21:18:58 2005 from 10.0.0.50 [root@localhost root]# |