Re: I got a strange "connection refused"

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


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-21-2008
Dan Yefimov
 
Posts: n/a
Default Re: I got a strange "connection refused"

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0