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 root@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:
pgpLSyw7J9Lf5.pgp
Description: PGP signature