Rationale for an absence of a native file-logging configuration option for OpenSSH-Server

Ángel González keisial at gmail.com
Wed May 11 01:12:02 EST 2011


Daniel Kahn Gillmor wrote:
> You can use sshd's -e option to send logs to stderr, while mapping the
> stderr file descriptor (fd 2) to whatever native file (or process) you like.
>
> Does this solve your problem?
>
> Note that if you plan to rotate your logs, you may need to restart sshd
> at the appropriate time.
>
> hth,
>
> 	--dkg
I don't think that's enough. I was recently in such situation, and the
logging
stopped after a few lines. Seemed that after forking the child closed
the descriptor.
So the real problem, that happened later, was not being recorded.




More information about the openssh-unix-dev mailing list