Aarvi

ssh_exchange_identification: Connection closed by remote host

  • Home
  • Blog
  • Linux
  • ssh_exchange_identification: Connection closed by remote host

Was getting error while trying to SSH  to one of  the server on port 22

ssh_exchange_identification: Connection closed by remote host

The issue is due to too many excessive connections on port 22

You can fix it by below change  in SSH config

 MaxStartups variable in /etc/ssh/sshd_config to ,

port 2222 or any port you need to  and  
MaxStartups 100

Restart the SSH service ,

service sshd restart

Aarvi server solutions Is a Web Hosting Support Company that has built a solid reputation for quality, reliability, and true professional service