1、连接慢的主要原因是DNS解析导致
- 在ssh服务端上更改/etc/ssh/sshd_config文件中的配置为如下内容:
UseDNS no
#GSSAPI options
GSSAPIAuthentication no
- 重启sshd进程使上述配置生效
systemctl restart sshd
2、systemd-logind服务问题
- systemctl stop systemd-logind
1、连接慢的主要原因是DNS解析导致
UseDNS no
#GSSAPI options
GSSAPIAuthentication no
systemctl restart sshd
2、systemd-logind服务问题