Re: Logingrace time and debug mode

From: Richard E. Silverman (res_at_qoxp.net)
Date: 05/31/05

  • Next message: sgaedig: "ssh: without password/passphrase prompt"
    Date: 31 May 2005 09:24:48 -0400
    
    

    > Hello All,
    > I am using OpenSSH on hp-ux 11.23 box. For testing I started sshd with
    > following options in debug mode
    >
    > sshd -o'logingracetime 1m' -ddd
    >
    > I conneted my client and waited over the gracetime, but the client
    > still could successfully connect to the server
    >
    > ...
    >
    > But the SSHD works perfectly when it is started in normal mode.
    > Is this a correct behaviour?

    Well, it's intended behavior anyway. One of the benefits of free
    software, is that you can obtain and read the source code:

    [sshd.c]
            /*
             * We don\'t want to listen forever unless the other side
             * successfully authenticates itself. So we set up an alarm which is
             * cleared after successful authentication. A limit of zero
             * indicates no limit. Note that we don\'t set the alarm in debugging
             * mode; it is just annoying to have the server exit just when you
             * are about to discover the bug.
             */
            signal(SIGALRM, grace_alarm_handler);
            if (!debug_flag)
                    alarm(options.login_grace_time);

    -- 
      Richard Silverman
      res@qoxp.net
    

  • Next message: sgaedig: "ssh: without password/passphrase prompt"

    Relevant Pages

    • Re: HP-UX: ssh connections ignore CTRL+C interrupts
      ... > When I start sshd from an interactive shell, ... stty settings should probably be considered "uninitialized variables". ... The proper way for stty settings to be established is by the client. ... If you start a Unix/Linux based SSH client from a shell session, ...
      (SSH)
    • Re: SSH connection pause
      ... debug mode, you may get some clues from where the output pauses. ... you suggested I try running the *server* in debug mode ... I started the sshd in debug mode, ... Now for the interesting bit;-) If I then attempt a connection to the ...
      (comp.security.ssh)
    • Re: help on unbuntu+ldap
      ... But unfortunately i cant log in on the client with the user on the ... ldap server which should normally happen ... Does the client reports any error during the login? ... Can you try to run slapd in debug mode and check the log? ...
      (Ubuntu)
    • Re: help on unbuntu+ldap
      ... But unfortunately i cant log in on the client with the user on the ... Does the client reports any error during the login? ... Can you try to run slapd in debug mode and check the log? ... then it asks for passwd and once thats given, ...
      (Ubuntu)
    • Re: more problems with host-based authentication
      ... we sent a hostbased packet, ... Why do you not run sshd in debug mode at the other end to see what it is ... At this end you are sending a host based request. ...
      (comp.os.linux.networking)