Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

$ nmap -p22 192.168.1.0/24

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

share|improve this answer

Your Answer

 
discard

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.