当前位置:   article > 正文

The authenticity of host 'localhost (127.0.0.1)' can't be established的处理方法

the authenticity of host 'localhost (127.0.0.1)' can't be established

      ssh localhost的时候遇到:

ubuntu@VM-0-15-ubuntu:~/taoge/hadoop_begin/hadoop-2.7.5$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.

     怎么办?

ubuntu@VM-0-15-ubuntu:~/.ssh$ chmod 777 /etc/ssh/ssh_config

    然后在这个文件的最后两行加上:

    StrictHostKeyChecking no
    UserKnownHostsFile /dev/null

    如下:

ubuntu@VM-0-15-ubuntu:~$ tail /etc/ssh/ssh_config
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   RekeyLimit 1G 1h
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
    StrictHostKeyChecking no
    UserKnownHostsFile /dev/null
ubuntu@VM-0-15-ubuntu:~$ 

    于是乎:

ubuntu@VM-0-15-ubuntu:~$ ssh localhost
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.

    搞定。 后面的问题一路顺畅。





声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/186027
推荐阅读
相关标签
  

闽ICP备14008679号