Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a list of servers, and I'd like to see if each server is connectable via SSH to every other server. Looking at ssh's man page, I don't see an option to "SSH ping" a host to see if it is connectable, other than actually directly connecting manually and seeing if I get a password prompt.

Is there any way to automate this process that I'm not aware of?

share|improve this question

You could use something like nmap to see if port 22 is open:

$ nmap -p22

That will report all machines on the specified subnet with port 22 open.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.