I want to install the Pseudo-Distributed HBase environment on my Mac OS Sierra (10.12.4), and it requires the installation of ssh and can register with ssh localhostno password. But sometimes I came across an error when I use sshto login. First of all, this is a background question, and the actual question is where can I find debug logs sshdso that I can know why logging is no longer possible?
As I know, Mac OS has already installed sshdand is used launchdto manage it, and I know one way to output debug logs sshd -E /var/log/sshd.log, but when I looked at the configuration /etc/ssh/sshd_config, there are two lines:
I assume that these two lines are used for debug mode config, then I uninstalled #before them and installed LogLevelin DEBUG3and then restarted sshd:
$ launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
$ launchctl load -w /System/Library/LaunchDaemons/ssh.plist
And then I set the log path to /etc/syslog.conf:
auth.*<tab>/var/log/sshd.log
<tab> here means a tab character and reloads the configuration:
$ killall -HUP syslogd
But the sshd.logfile cannot be found in the folder /var/logat runtime ssh localhost. I also tried setting /etc/asl.log:
> /var/log/sshd.log format=raw
? [= Facility auth] file sshd.log
And the result was the same, can someone help me?
source
share