Using ssh I am logging to another system and executing scripts there that creates new machines, and do some setups. It takes around 7-8 hours. So what happened is, the ssh connection keeps dropping and I always get timeout with unsuccessful execution of the script.
So now I am using this argument along with ssh connection:
ssh -o ServerAliveInterval=60 user@host ....
This ssh is spawned multiple times. The problem is after few ssh connection, I am getting error :
too many logins of user and the after ssh connections are getting closed just after successful logins.
So is it the behavior of the ServerAliveInterval, that keeps the ssh user login session in remote machine alive even after ssh work is over and that's why my further logins are disconnected?