I have a CentOS 7 VM Instance on GCP, I have a cron job on my local infra that connects to GCP Instance every minute to check some parameters on GCP VM Instance.
Most of the time the ssh [public ip] command works, but some times I get this error "ssh: connect to host [public ip] port 22: Connection refused"
Is there max connection limit that I can increase.
Thanks
IJ
Best Answer
Indeed. Check sshd_config's man page
man sshd_config
If not already, it might not be a bad idea to check your auth.log for some additional info as well.
Some more info on the configuration variables: