xshell连接缓慢、自动断开
打开虚拟机文件:/etc/ssh/sshd_config
vim /etc/ssh/sshd_config
修改设置:
//去掉 #
ClientAliveInterval 60 //每60秒发送保活信息
ClientAliveCountmax 3//连发3次,均无回应,关闭连接
设置xshell连接属性
转到该网址,查看图片:
https://i.loli.net/2020/08/26/gdy6MmzIONpLTKC.png
xshell输入命令行 卡顿:
//去掉 #
UseDNS no
重启ssh服务:
service sshd restart
systemctl restart sshd.service