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 ...
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
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 ...
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 ...
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:...
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/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pause × 17linux × 6
windows × 2
ssh × 2
copy × 2
apache-2.2 × 1
networking × 1
active-directory × 1
php × 1
debian × 1
windows-server-2008-r2 × 1
sql-server × 1
backup × 1
virtualization × 1
raid × 1
redhat × 1
openvpn × 1
virtual-machines × 1
hard-drive × 1
hyper-v × 1
kvm-virtualization × 1
sql-server-2008 × 1
centos6 × 1
windows-xp × 1
domain-controller × 1