SSH timeout on password challenge.

Chris Linstid clinstid at gmail.com
Mon Jan 27 10:47:36 EST 2014


Oops, forgot to reply to all.

      - Chris
On Jan 27, 2014 10:44 AM, "Chris Linstid" <clinstid at gmail.com> wrote:

> If I'm understanding this correctly, it sounds like you just want the ssh
> command to fail if you're presented with a password challenge? If that's
> the case, then you can just add "-o PasswordAuthentication=no" and the ssh
> call should fail when it can't use one of the other auth methods.
>
>       - Chris
> On Jan 27, 2014 10:23 AM, "Ken D'Ambrosio" <ken at jots.org> wrote:
>
>> Hey, all.  I'm scripting stuff to a zillion (ballpark) servers, and ones
>> that are up, but haven't been fully deployed (i.e., don't yet have ssh
>> keys) password challenge me.  While there *is* an ssh timeout option,
>> it's my understanding that that's for when a connection fails to
>> establish, NOT for when a password challenge happens.  My script is
>> using the timeout command:
>>
>> timeout 5 ssh -n $host 'blahblahblah'
>>
>> but that seems to not be doing the trick.  Since my script *does*
>> (eventually) e-mail out, I assume it's working... but I've been staring
>> at it sitting at this one host password challenge for over 20 min., now.
>>   Even if it eventually times out, it ain't exactly optimal.
>>
>> Any bright ideas on how to do this gracefully?
>>
>> Thanks!
>>
>> -Ken
>> _______________________________________________
>> gnhlug-discuss mailing list
>> gnhlug-discuss at mail.gnhlug.org
>> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20140127/2e409884/attachment.html 


More information about the gnhlug-discuss mailing list