SSH 连接服务器报错:ssh_exchange_identification: Connection closed by remote host

今天尝试连接自己服务器的时候,SSH无法连接上去,并且提示:

ssh_exchange_identification: Connection closed by remote host

经过查询得知是因为SSH连接数量的问题。

  1. 通过服务商的VNC管理程序,进入服务器

  2. 编辑sshd_config的文件

    1
    2
    3
    4
    vi /etc/ssh/sshd_config
    # 然后把MaxSessions启用,并且后面的数字改成50
    # 保存
    systemctl restart sshd
  3. 重连即可。

PS:如果发现还是无法连接,检查一下是否Surge开启了增强模式。关闭该模式即可。

评论

You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.
Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×