openssh-unix-dev May 2011 archive
Main Archive Page > Month Archives  > openssh-unix-dev archives
openssh-unix-dev: Re: Rationale for an absence of a native file-

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

From: Daniel Kahn Gillmor <dkg_at_nospam>
Date: Tue May 10 2011 - 14:32:34 GMT
To: Lee Hambley <>

On 05/10/2011 10:24 AM, Lee Hambley wrote:
> Good afternoon, I wanted to ask quickly about the rationale for not allowing
> explicit declaration of a log file to receive logging output. Whilst using
> syslogd is convenient for system processes, for short-lived applications,
> such as booting an SSH server (and wishing to monitor it) for testing
> purposes… having to also configure syslogd to receive output is
> inconvenient.

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.



openssh-unix-dev mailing list