今天尝试连接自己服务器的时候,SSH无法连接上去,并且提示:
ssh_exchange_identification: Connection closed by remote host
经过查询得知是因为SSH连接数量的问题。
通过服务商的VNC管理程序,进入服务器
编辑sshd_config
的文件
1 2 3 4
| vi /etc/ssh/sshd_config # 然后把MaxSessions启用,并且后面的数字改成50 # 保存 systemctl restart sshd
|
重连即可。
PS:如果发现还是无法连接,检查一下是否Surge开启了增强模式。关闭该模式即可。