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: Lee Hambley <lee.hambley_at_nospam>
Date: Tue May 10 2011 - 14:40:44 GMT
To: openssh-unix-dev@mindrot.org

>
> 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.
>

I hadn't considered that, interesting point…

> Does this solve your problem?
>

I expect so, I'm working on Ruby bindings for libssh, and the server is
booted by a Ruby package "Daemon Controller", DaemonConrtoller requires only
that there be a logfile for it to check for errors…

> Note that if you plan to rotate your logs, you may need to restart sshd
> at the appropriate time.
>

Not an issue here, but thanks for keeping it in mind!

For what it's worth, and if anyone is interested in my project, contributing
or following - here's the link: https://github.com/leehambley/libssh.rb and
specifically my server wrapper implementation
https://github.com/leehambley/libssh.rb/blob/master/test/support/ssh_daemon.rb
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev