On Mon, Apr 19, 2010 at 02:16:46PM +0100, Jannik Sundø wrote:
> I'm writing a script which will log into a list of servers if they
> have public/private keypairs set up. If a server doesn't, I want the
> script to move on to the next server rather than wait at a password
> prompt.
> 
> I'm using this command:
> ssh r...@ip -o PasswordAuthentication=no KbdInteractiveAuthentication=no

You might also try BatchMode=yes, though I would expect if the above
doesn't work, that wouldn't either.  Worth a shot maybe.

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

Attachment: pgptg7yGo0WX3.pgp
Description: PGP signature

Reply via email to