why does ssh not log?

I have now been screwing around with qnx 6.2 from the free non commercial
download as well as the third party package from the qnxpub100.iso for a
number of days.
Making things like httpd, samba and sshd work is a trying experience. Config
and log files live in weird places. Some of this I have gathered from other
posts have been fixed in 6.2.1 which is not released yet… But wouldn’t it
be nice, if a Qnx newbie, would be presented with an installation that sort
of worked straight out of the box?

Why does sshd refuse to log? I had to run it in -d (debug) mode to find out.
Neither the local documentation (which is basically a snippet of what’s
found at openssh.com and not adapted to qnx, nor the documentation at
openssh.com says anything at all about logging wanting to live in
/urs/adm/lastlog. If sshd cannot find that file, it simply doesn’t log and
does not write to slogger either. If the file exists, it only outputs 28
bytes of rubbish: êì7>ttyp1 , rubbish to me anyway.

Conrad Weyns.

Why does sshd refuse to log? I had to run it in -d (debug) mode to find out.
Neither the local documentation (which is basically a snippet of what’s
found at openssh.com and not adapted to qnx, nor the documentation at
openssh.com says anything at all about logging wanting to live in
/urs/adm/lastlog. If sshd cannot find that file, it simply doesn’t log and
does not write to slogger either. If the file exists, it only outputs 28
bytes of rubbish: ??7>ttyp1 , rubbish to me anyway.

You will notice we don’t ship who or finger so the normal login log files
aren’t much use. Is that what you are trying to enable?

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

“Chris McKillop” <cdm@qnx.com> skrev i melding
news:b1n3tr$nod$1@nntp.qnx.com

Why does sshd refuse to log? I had to run it in -d (debug) mode to find
out.
Neither the local documentation (which is basically a snippet of what’s
found at openssh.com and not adapted to qnx, nor the documentation at
openssh.com says anything at all about logging wanting to live in
/urs/adm/lastlog. If sshd cannot find that file, it simply doesn’t log
and
does not write to slogger either. If the file exists, it only outputs 28
bytes of rubbish: ??7>ttyp1 , rubbish to me anyway.


You will notice we don’t ship who or finger so the normal login log files
aren’t much use. Is that what you are trying to enable?

Ehm? I may be confused. But I am simply trying to enable sshd’s documented
(at openSSH) logging & debugging options. I want to get a log of “who” has
logged in & out with ssh and “when”. Isn’t that something that ssh can do
without needing who or finger?
Am I being OT with sshd issues in this forum? I’ll have a look if I can get
some help at openssh.

Regards,
Conrad

chris

\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

You can log to syslogd. Simply add the following lines to your
sshd_config file:

SyslogFacility AUTH
LogLevel INFO
#LogLevel DEBUG3 # Insane logging

Add the following line to syslog.conf:

auth.* /var/log/auth

And make sure you run syslogd in a startup script somewhere, with an
empty file at /var/log/auth.

Enjoy!

Daryl Low

Conrad Weyns wrote:

I have now been screwing around with qnx 6.2 from the free non commercial
download as well as the third party package from the qnxpub100.iso for a
number of days.
Making things like httpd, samba and sshd work is a trying experience. Config
and log files live in weird places. Some of this I have gathered from other
posts have been fixed in 6.2.1 which is not released yet… But wouldn’t it
be nice, if a Qnx newbie, would be presented with an installation that sort
of worked straight out of the box?

Why does sshd refuse to log? I had to run it in -d (debug) mode to find out.
Neither the local documentation (which is basically a snippet of what’s
found at openssh.com and not adapted to qnx, nor the documentation at
openssh.com says anything at all about logging wanting to live in
/urs/adm/lastlog. If sshd cannot find that file, it simply doesn’t log and
does not write to slogger either. If the file exists, it only outputs 28
bytes of rubbish: êì7>ttyp1 , rubbish to me anyway.

Conrad Weyns.
\

Conrad Weyns wrote:

NB: would’nt slogger be a good recipient of logging messages for things like
sshd, httpd and samba? None of them seem to use it. Instead, they keep
config files in weird places and “expect” log files in even weirder
places… Looks like some guidelines are needed > :slight_smile:

Yeah, it would, except that slogger is QNX proprietary (ie. not a POSIX
standard like syslogd), so I don’t think the OpenSSH people would like
that. However, if you have a burning desire, the APIs are very similar
and the source is out there :wink:

Daryl Low

“Daryl Low” <dlo*w@qnx.com> skrev i melding
news:3E3FA49D.3020408@qnx.com

You can log to syslogd. Simply add the following lines to your
sshd_config file:

SyslogFacility AUTH
LogLevel INFO

Supposedly the default, according to the info at the top of the sshd_config
file.

#LogLevel DEBUG3 # Insane logging

Add the following line to syslog.conf:

auth.* /var/log/auth

And make sure you run syslogd in a startup script somewhere, with an
empty file at /var/log/auth.

Thanks! This seems to work. I get login’s anyway, no logouts, but it’s a
start and it showed me some other errors. I can see that I have a lot of
trial and error to do :slight_smile:

I realize that some logging is time consuming and eats up hd space, but at
my stage, it’s vital to get some understanding of how things work - or
doesn’t work :slight_smile:

NB: would’nt slogger be a good recipient of logging messages for things like
sshd, httpd and samba? None of them seem to use it. Instead, they keep
config files in weird places and “expect” log files in even weirder
places… Looks like some guidelines are needed :slight_smile:

Enjoy!

I sure am. A little frustrating at times, but I’ll try and persevere!
Thanks for the support.
Cheers,
Conrad.

Daryl Low

Conrad Weyns wrote:
I have now been screwing around with qnx 6.2 from the free non
commercial
download as well as the third party package from the qnxpub100.iso for a
number of days.
Making things like httpd, samba and sshd work is a trying experience.
Config
and log files live in weird places. Some of this I have gathered from
other
posts have been fixed in 6.2.1 which is not released yet… But wouldn’t
it
be nice, if a Qnx newbie, would be presented with an installation that
sort
of worked straight out of the box?

Why does sshd refuse to log? I had to run it in -d (debug) mode to find
out.
Neither the local documentation (which is basically a snippet of what’s
found at openssh.com and not adapted to qnx, nor the documentation at
openssh.com says anything at all about logging wanting to live in
/urs/adm/lastlog. If sshd cannot find that file, it simply doesn’t log
and
does not write to slogger either. If the file exists, it only outputs 28
bytes of rubbish: êì7>ttyp1 , rubbish to me anyway.

Conrad Weyns.


\