利用ssh-copy-id公钥拷贝工具实现ssh无密码登录

[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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,991评论 0 0
  • host Copyright (c) 2014-2017, racaljk. https://github.com...
    JasonStack阅读 3,231评论 0 4
  • 本文整理了在实践过程中使用的Linux网络工具,这些工具提供的功能非常强大,我们平时使用的只是冰山一角,比如lso...
    老夫刘某阅读 3,795评论 0 7
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 11,044评论 0 23
  • 每一次成长,都有不可挽回的失去,可如果不去成长,这失去却是毫无意义。
    久也行阅读 97评论 0 0

友情链接更多精彩内容