This is a discussion on Re: I got a strange "connection refused" within the OpenSSH Development forums, part of the Networking and Network Related category; On Mon, 21 Apr 2008, Ian jonhson wrote: > mmmh..... That my be a alternative. But how to open the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Mon, 21 Apr 2008, Ian jonhson wrote:
> mmmh..... That my be a alternative. But how to open the syslog in SSHD? > I tried to add the line "syslog(LOG_INFO,"%s: here",__func__)" to get debug > information, however nothing output in /var/log/messages. > > Anything I miss? > SSHD privsep child according to your strace log tried to contact syslogd right after privsep monitor crashed, so there is generally nothing you should do in addition to what I advised. But if you want to explicitly add debug logging, you should invoke openlog() right before invoking syslog(), and invoke closelog() after you are done with syslogging. Consult manpages for details of those functions. -- Sincerely Your, Dan. _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@mindrot.org https://lists.mindrot.org/mailman/li...enssh-unix-dev |
![]() |
| Thread Tools | |
| Display Modes | |
|
|