ssh outgoing connections max limit

626 views
Skip to first unread message

Raghava Mutharaju

unread,
Dec 30, 2014, 2:13:33 PM12/30/14
to parall...@googlegroups.com
Hi,

I am using pssh to ssh from one linux machine to several others and start a job there. ssh connection is terminated only after the job on that instance completes. Problem is, there seems to be a limit on the number of outgoing ssh connections from one instance -- it is around 30. I was trying with 64 hosts.

I tried ssh directly on to the 64 machines one after the other without terminating any of the previous connections and that works. So I thought that there should be some kind of limit (or a default value) in pssh. Is this the case? Please let me know.

Regards,
Raghava.

Nicolas Herve

unread,
Feb 18, 2015, 9:23:04 AM2/18/15
to parall...@googlegroups.com
Hi !
I like pssh for its fancy display but for things I cannot do with it, I use xargs like this:

xargs -a desktop.lst -I{} ssh {} "hostname && COMMAND "

as a substitute to:

pssh -i -h desktops.lst COMMAND


Regards,
Nicolas

zeesh86

unread,
Feb 19, 2015, 7:31:19 PM2/19/15
to parall...@googlegroups.com
I am also facing a similar issue. Did you get an answer for this?

Raghava Mutharaju

unread,
Feb 19, 2015, 9:38:26 PM2/19/15
to parall...@googlegroups.com
Yes, use the -par option of pssh and set it to more than the number of outgoing connections. Say, for example, -par 500. This worked for me, don't know if it has any side-effects. 

Regards,
Raghava.

--

---
You received this message because you are subscribed to the Google Groups "parallel-ssh" group.
To unsubscribe from this group and stop receiving emails from it, send an email to parallel-ssh...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew McNabb

unread,
Feb 24, 2015, 3:48:58 PM2/24/15
to parall...@googlegroups.com
The default parallelism is 32, and the best thing to do is to set it to
a high number.

We should change the option so to make "-p 0" specify that there should
be no limit, but unfortunately, this simple change hasn't been
implemented.

zeesh86

unread,
Mar 3, 2015, 7:18:25 PM3/3/15
to parall...@googlegroups.com
Thanks. 

My limit is actually set by the jump server. I did -par 500 but still didnt help.
Reply all
Reply to author
Forward
0 new messages