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 cluster of 50 machines and some machines already have ssh automatic login setup but I want to be able to check this with a script. Is there a command that help me do this.

share|improve this question
"Automatic login" does not have a definition with regards to SSH. You will need to supply your definition. – Ignacio Vazquez-Abrams Jul 22 '11 at 6:42

that one;

list="host1 host2 host3";for host in list;do 
 echo -n $host"  ";ssh -o PasswordAuthentication=no  user@$host;
 echo "works!";
grep works 
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.