Re: ssh timeout
From: Steve Belt (rgpg70) (Steve.Belt_at_motorola.com)
Date: 03/17/04
- Previous message: Darren Tucker: "Re: ssh timeout"
- In reply to: Darren Tucker: "Re: ssh timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 17 Mar 2004 09:16:02 -0600 To: Darren Tucker <dtucker@zip.com.au>
Thanks for the info, Darren. That worked for me. Appreciate it. :)
Cheers,
Steve
Darren Tucker wrote:
> Steve Belt (rgpg70) wrote:
>
>> I am wondering if there is any way I can get ssh to timeout (return)
>> if nothing is entered when prompted for a password? I understand
>> there is a LoginGraceTime value that can be used in the sshd_config
>> file, but that still doesn't make ssh return (exit) when no password
>> is ever entered. The command just hangs until a <return> is
>> pressed. Is there any way to make it return after the LoginGraceTime
>> limit has expired? I am using ssh inside a script that cycles over
>> several hosts. If a host does not have an updated authorized_keys
>> file, it prompts for a password. The script then hangs while ssh
>> waits for an answer. I would like ssh to return (exit) eventually so
>> the script can continue.
>
>
> (Assuming you're using OpenSSH since you crossposted to openssh-unix-dev)
>
> You could use "ssh -o PreferredAuthentications=hostbased,publickey
> yourhost" so it won't try password or keyboard-interactive.
>
-- Steve "Wheat" Belt Motorola, Inc. Steve.Belt@motorola.com 6501 William Cannon Dr. West, MD OE341 512-895-2268 Austin, TX 78735
- Previous message: Darren Tucker: "Re: ssh timeout"
- In reply to: Darren Tucker: "Re: ssh timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|