SSH failing when running mutiple ssh scripts at once

Latest response

I am SSHing to Cisco routers and switches. SSH fails if on one of the other scripts is hung trying to connect to a router or switch that is slow to respond.

I have done this in other networks but I was not in charge of the Linux server.

Is there a setting in SSH client that will allow multiple ssh processes to be trying to connect at the same time?

Responses

I'm afraid I probably don't understand the question - but are you talking about multiplexing?

https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing

Also - you can configure a ConnectTimeout value for ssh that might help with the issues you are seeing.

Another possibility... See http://linux.die.net/man/5/sshd_config for the MaxSessions value, This value Specifies the maximum number of open sessions permitted per network connection. That man page claims the default is 10.

Which version of Red Hat Linux are you using?

oh, restart sshd after any changes, make a backup copy of the config... just in case.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.