I want to install Pseudo-Distributed HBase environment on my Mac OS Sierra (10.12.4), and it requires ssh installed and can log with ssh localhost
without password. But sometimes I came across with error when I use ssh
to log in. Above all are question background, and the actual question is where can I find debug logs of sshd
so I could know why logging is failed in further?
As I know, Mac OS already have sshd
installed and use launchd
to manage it, and I know one way to output debug logs by sshd -E /var/log/sshd.log
, but when I reviewed /etc/ssh/sshd_config
configuration and there are two lines:
#SyslogFacility AUTH
#LogLevel INFO
I guess these two lines are used to config debug mode, then I removed #
before them and set LogLevel
to DEBUG3
and then restarted sshd
:
$ launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
$ launchctl load -w /System/Library/LaunchDaemons/ssh.plist
And then I set log path in /etc/syslog.conf
:
auth.*<tab>/var/log/sshd.log
<tab>
means tab character here, and reloaded the config:
$ killall -HUP syslogd
But sshd.log
file can not be found in /var/log
folder when I executed ssh localhost
. I also tried config the /etc/asl.log
:
> /var/log/sshd.log format=raw
? [= Facility auth] file sshd.log
And the result was the same, can someone help me?