Test A SSH Connection from Windows commandline
- by IguanaMinstrel
I am looking for a way to test if a SSH server is available from a Windows host. I found this one-liner, but it requires the a Unix/Linux host:
ssh -q -o "BatchMode=yes" user@host "echo 2>&1" && echo "UP" || echo "DOWN"
Telnet'ing to port 22 works, but that's not really scriptable. I have also played around with Plink, but I…