• 欢迎浏览“String me = Creater\忠实的资深Linux玩家;”,请文明浏览,理性发言,有侵犯你的权益请邮件我(creater@vip.qq.com).
  • 把任何的失败都当作一次尝试,不要自卑;把所有的成功都想成是一种幸运,不要自傲。
  •    2年前 (2017-02-21)  Linux Linux应用 |   抢沙发  18 
    文章评分 0 次,平均分 0.0

    服务器改了密码,试过密码多次后出现:

    ssh_exchange_identification: read: Connection reset by peer

    可以通过ssh -v查看连接时详情

    ssh -v root@ip地址或域名

    会出现以下信息:

    OpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 56: Applying options for *
    debug1: Connecting to xxx [xx] port 22.
    debug1: Connection established.
    debug1: identity file /home/yanue/.ssh/id_rsa type -1
    debug1: identity file /home/yanue/.ssh/id_rsa-cert type -1
    debug1: identity file /home/yanue/.ssh/id_dsa type -1
    debug1: identity file /home/yanue/.ssh/id_dsa-cert type -1
    debug1: identity file /home/yanue/.ssh/id_ecdsa type -1
    debug1: identity file /home/yanue/.ssh/id_ecdsa-cert type -1
    debug1: identity file /home/yanue/.ssh/id_ed25519 type -1
    debug1: identity file /home/yanue/.ssh/id_ed25519-cert type -1
    ........

    解决方法:

    vi /etc/hosts.allow

    全部注释,追加:

    sshd: ALL

    重启ssh就ok了

    service sshd restart
     

    除特别注明外,本站所有文章均为String me = "Creater\忠实的资深Linux玩家";原创,转载请注明出处来自http://unix8.net/home.php/5383.html

    关于

    发表评论

    暂无评论

    切换注册

    登录

    忘记密码 ?

    切换登录

    注册

    扫一扫二维码分享