Please help me out from below situation.
There are 1000 linux servers with me. i need to find out which all servers are accepting passwordless connection from my master server. Below is the command i used. problem with below command is, when the destination server ask for password then my loop stop working.
for i in `cat srv`; do echo Server $i\n; ssh $i "uptime"; done
Server server001 04:56:01 up 62 days, 9:18, 0 users, load average: 0.09, 0.14, 0.13
How can i resolve it.?