• home > OS > Linux > Devops >

    ssh登录出现 Connection reset by peer

    Author:zhoulujun Date:

    ssh新建主机,发现kex_exchange_identification: read: Connection reset by peer检查TCP包文件( etc hosts allow和 etc hosts den

    ssh新建主机,发现kex_exchange_identification: read: Connection reset by peer

    检查TCP包文件( /etc/hosts.allow 和  /etc/hosts.deny)

    • hosts.allow :授予客户端访问权限

    • hosts.deny:禁止客户端访问权限

    vim   /etc/hosts.allow,打开先关的配置(/etc/hosts.deny)配置是一样的。

    sshd: ALL  代表允许/禁止 所有客服端

    sshd: 192.168.2.*  表示具体的ip

    wq保存后, systemctl restart sshd 重启就好了


    转载本站文章《ssh登录出现 Connection reset by peer》,
    请注明出处:https://www.zhoulujun.cn/html/OS/Linux/LinuxDevops/8735.html