ssh timeout

Steve Belt (rgpg70) Steve.Belt at motorola.com
Thu Mar 18 02:16:02 EST 2004


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 at motorola.com		6501 William Cannon Dr. West, MD OE341
512-895-2268			Austin, TX 78735







More information about the openssh-unix-dev mailing list