[root@www ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.1.144
下面是交互输出信息,
The authenticity of host '192.168.1.144 (192.168.1.144)' can't be established.
RSA key fingerprint is 53:5d:e9:70:9a:9e:80:27:ef:1d:2a:dd:a4:a4:e5:fd.
Are you sure you want to continue connecting (yes/no)? yes #这里填yes,回车
Warning: Permanently added '192.168.1.144' (RSA) to the list of known hosts.
Address 192.168.1.144 maps to bogon, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
root@192.168.1.144's password:
Now try logging into the machine, with "ssh 'root@192.168.1.144'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
测试是否可以无密码ssh登录
[root@www ~]# ssh root@192.168.1.144
Address 192.168.1.144 maps to bogon, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
Last login: Sat Jan 9 15:53:01 2016 from 192.168.1.106
[root@bogon ~]#
可以看到 我没有输入密码 但是 我登录了
[root@www ~]# ssh root@192.168.1.144
Address 192.168.1.144 maps to bogon, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
Last login: Sat Jan 9 15:53:01 2016 from 192.168.1.106
[root@bogon ~]# ifconfig #不放心?再次确认!!!!
eth0 Link encap:Ethernet HWaddr 00:0C:29:3F:7A:03
inet addr:192.168.1.144 Bcast:192.168.1.255 Mask:255.255.255.0