Re: Logingrace time and debug mode
From: Richard E. Silverman (res_at_qoxp.net)
Date: 05/31/05
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|