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 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

1 Answer 1

that one;

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