Re: ssh timeout

From: Steve Belt (rgpg70) (Steve.Belt_at_motorola.com)
Date: 03/17/04

  • Next message: andy_at_neu.net: "config questions"
    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
    

  • Next message: andy_at_neu.net: "config questions"

    Relevant Pages

    • Re: Running script after logging out of SSH
      ... What I'm wondering is how I would execute a script after I have ... My normal way of working is to use Putty on my ... Windows XP machine to SSH in to my Linux box. ... When I click "exit" from ...
      (comp.unix.shell)
    • Re: Question about ssh no login
      ... I've implemented ssh no logins between 2 computers. ... How do I run commands in the remote machine from the local machine's ... I tried a simple script on the local machine containing "ssh ... remotemachine@xxxxxxxxxxxxxxx; ls; exit". ...
      (comp.os.linux.misc)
    • Re: Shell script with ssh does not work with crontab :(
      ... > I am trying to write a script that will use ssh and connect ... > public in the authorized_keys file on the other server. ... > I wrote a simple script which runs smoothly if I run it from the command line. ...
      (comp.security.ssh)
    • Re: ssh via inetd the Debian way
      ... please remember that *IF* you upgrade you ssh ... script should just exit. ... Here is the start portion of the init.d script: ... console so if it weren't for scp I could always just ssh to the console and ...
      (Debian-User)
    • Re: Question about ssh no login
      ... remotemachine@xxxxxxxxxxxxxxx; ls; exit". ... Wwhat rest of the script. ... YOu told it to run the command ... ssh remotemachine@xxxxxxxxxxxxxxx ls ...
      (comp.os.linux.misc)