[root@akin log]# ssh-keygen
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:
92:50:4a:fc:3b:1f:ac:20:5c:28:ee:2f:e8:89:41:3b root@akin.com
[root@akin log]# ssh-copy-id root@192.168.14.12
/usr/bin/ssh-copy-id: ERROR: No identities found
[root@akin log]# ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.14.12
21
The authenticity of host '192.168.14.12 (192.168.14.12)' can't be established.
RSA key fingerprint is 32:12:7d:48:30:0b:f6:24:e9:d2:81:1f:41:a4:9e:0c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.14.12' (RSA) to the list of known hosts.
Address 192.168.14.12 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN

ATTEMPT!
root@192.168.14.12's password:
Now try logging into the machine, with "ssh 'root@192.168.14.12'", and check in:

  .ssh/authorized_keys

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

[root@akin log]# ssh root@192.168.14.12
Address 192.168.14.12 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN

ATTEMPT!
Last login: Tue Apr 24 13:52:32 2012 from 192.168.10.238
[root@akin2 ~]# exit
logout
Connection to 192.168.14.12 closed.

来自badb0y提供