服务器ssh登陆变得特别慢

    1. 连接登陆网卡ip查看登陆信息

      1. [root@student245-128 ~]# ssh -v root@192.168.3.128
      2. OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
      3. debug1: Reading configuration data /etc/ssh/ssh_config
      4. debug1: /etc/ssh/ssh_config line 58: Applying options for *
      5. debug1: Connecting to 192.168.3.128 [192.168.3.128] port 22.
      6. debug1: Connection established.
      7. debug1: permanently_set_uid: 0/0
      8. debug1: identity file /root/.ssh/id_rsa type 1
      9. debug1: key_load_public: No such file or directory
      10. debug1: identity file /root/.ssh/id_rsa-cert type -1
      11. debug1: key_load_public: No such file or directory
      12. debug1: identity file /root/.ssh/id_dsa type -1
      13. debug1: key_load_public: No such file or directory
      14. debug1: identity file /root/.ssh/id_dsa-cert type -1
    2. 修改服务端配置

    1. [root@sz3-200 ~]# vim /etc/ssh/sshd_config
    2. GSSAPIAuthentication no yes改为no
    3. UseDNS=no 追加此行
    1. 重启sshd服务
      1. [root@student245-128 ~]# systemctl restart sshd