six-ddc / hss

An interactive parallel ssh client featuring autocomplete and asynchronous execution.
MIT License
352 stars 23 forks source link

host failure #18

Open lavinnyv opened 2 weeks ago

lavinnyv commented 2 weeks ago

i was using hss to send a command to 25 hosts to launch an app. 1 host went down and that locked up my command to all. is there an option to ignore any host that might be offline and continue through the rest of my hosts?

lavinnyv commented 1 week ago

if anyone runs into this same problem in the future, what i found was that i could edit the ssh config file on my controller to only try to find host for a certain number of attempts or time to try.

i tried both of these, one at a time: ConnectionAttempts 2

ConnectTimeout 1

and depending on what you need, the ConnectTimeout 1 was faster to search for a host and then move on if it doesn't find it.

the ssh config file is in ~/.ssh and most likely it's blank until you enter one of these commands.