5 votes

Linux command to wait for a SSH server to be up

This is a 'ping_ssh' script I'm using. It handles timeout cases, fast success, and won't prompt for passwords or be fooled by the port being open but not responding as with 'nc' based solutions. This ...
poleguy's user avatar
  • 211
4 votes

Linux command to wait for a SSH server to be up

Something simple like this does the job, waiting 5 seconds between attempts and discarding STDERR until ssh <host> 2> /dev/null do sleep 5 done
Gary's user avatar
  • 41
2 votes

Linux command to wait for a SSH server to be up

function hurryup () { until ssh -o ConnectTimeout=2 "$1"@"$2" do sleep 1 done } hurryup root "10.10.0.3" -o ConnectTimeout=2 is a slightly hacky way of getting around not responding ...
andylukem's user avatar
1 vote

Data Transfer Pauses on LSI 9271 RAID Controller

I had a similar issue with a 9260-16i. It was not temps as I have dual 92mm fans blowing right on the LSI. I have a second server set up same way and it was fine. What I discovered was the server with ...
user2382816's user avatar
1 vote

Windows wait command till a system time

The accepted answer is a helpful start, but there are a couple of problems: %TIME% has a leading space instead of a leading zero before 10:00 (e.g. 9:30). This will result in comparisons like if 9:...
mwfearnley's user avatar
1 vote

Linux command to wait for a SSH server to be up

This uses socat to connect and wait for the server to say something, which will be the SSH version info: while [ -z "$( socat -T2 stdout tcp:127.0.0.1:22,connect-timeout=2,readbytes=1 2>/dev/...
Boann's user avatar
  • 168

Only top scored, non community-wiki answers of a minimum length are eligible