• ssh-copy-id Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 的解决方案


    -bash-4.2# ssh-copy-id 192.168.9.180
    /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
    /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
    Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
    -bash-4.2# ssh root@192.168.9.180
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    14:e1:17:8a:d7:f1:a9:6e:0d:36:cf:ff:18:60:15:42.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /root/.ssh/known_hosts:1
    ECDSA host key for 192.168.9.180 has changed and you have requested strict checking.
    Host key verification failed.

    如果 是报的这个错:

    Host key verification failed.

    vi /etc/ssh/sshd_config

    修改 PasswordAuthentication no

    为 PasswordAuthentication yes

    重启 sudo systemctl restart sshd

    如果 是报的是 publickey,gssapi-keyex,gssapi-with-mic

    passwd root 下

    最近再给登陆的用户设置个密码,就解决了

  • 相关阅读:
    easy_install
    do some projects in macine learning using python
    awesome-scala
    val, lazy, def
    Scala命令设置JVM参数的规则
    CMMI-4中19个PA的大致描述
    项目管理中的十一个原则
    php代码在服务器中查看接值
    PHP进程锁
    解决百度网盘(百度云)分享链接不存在失效、分享的文件已经被取消的问题
  • 原文地址:https://www.cnblogs.com/jackluo/p/10330169.html
Copyright © 2020-2023  润新知