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
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
June 25, 2026
June 25, 2026
June 24, 2026
Keep your servers secure, optimized, and running smoothly with our reliable 24/7 server management and technical support.