Linux链接到ssh的时候可能报错:“ssh_exchange_identification: Connection closed by remote host”。
检查方法:SourceByrd's Weblog-https://note.t4x.org/error/ssh-exchange-identification-connection-closed-by-remote-host/
①:查看系统日志;SourceByrd's Weblog-https://note.t4x.org/error/ssh-exchange-identification-connection-closed-by-remote-host/
②:检查 /etc/hosts.deny 以及 /etc/hosts.allow 里面是否做了屏蔽;SourceByrd's Weblog-https://note.t4x.org/error/ssh-exchange-identification-connection-closed-by-remote-host/
③:删除用户目录的/.ssh/known_hosts测试一下;SourceByrd's Weblog-https://note.t4x.org/error/ssh-exchange-identification-connection-closed-by-remote-host/
④:sshd配置的MaxStartups限制太死,连接数不够。SourceByrd's Weblog-https://note.t4x.org/error/ssh-exchange-identification-connection-closed-by-remote-host/ SourceByrd's Weblog-https://note.t4x.org/error/ssh-exchange-identification-connection-closed-by-remote-host/