Re: Too many successive open/closes in a script results in failure
I suppose that the SSH server or the machine firewall (or iptables or similar tool) just blocks too many connection attempts from the same client. It's quite common.
Why are you re-connecting the same host? Why don't you reuse the connection?
Why are you re-connecting the same host? Why don't you reuse the connection?