SSH timeout on password challenge.
ken at jots.org
ken at jots.org
Mon Jan 27 10:49:01 EST 2014
GAH. I googled for that to no avail. Should have just read the damn manpage. Thank you!
Chris Linstid <clinstid at gmail.com> wrote:
>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/
>>>
>>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20140127/d2b3513b/attachment.html
More information about the gnhlug-discuss
mailing list