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.

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

1 Answer

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 
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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