Where to find sshd logs on MacOS sierra : <p>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 <code>ssh localhost</code> without password. But sometimes I came across with error when I use <code>ssh</code> to log in. Above all are question background, and the actual question is where can I find debug logs of <code>sshd</code> so I could know why logging is failed in further?</p>

<p>As I know, Mac OS already have <code>sshd</code> installed and use <code>launchd</code> to manage it, and I know one way to output debug logs by <code>sshd -E /var/log/sshd.log</code>, but when I reviewed <code>/etc/ssh/sshd_config</code> configuration and there are two lines:</p>

<pre><code>#SyslogFacility AUTH
#LogLevel INFO
</code></pre>

<p>I guess these two lines are used to config debug mode, then I removed <code>#</code> before them and set <code>LogLevel</code> to <code>DEBUG3</code> and then restarted <code>sshd</code>:</p>

<pre><code>$ launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
$ launchctl load -w /System/Library/LaunchDaemons/ssh.plist
</code></pre>

<p>And then I set log path in <code>/etc/syslog.conf</code>:</p>

<pre><code>auth.*&lt;tab&gt;/var/log/sshd.log
</code></pre>

<p><code>&lt;tab&gt;</code> means tab character here, and reloaded the config:</p>

<pre><code>$ killall -HUP syslogd
</code></pre>

<p>But <code>sshd.log</code> file can not be found in <code>/var/log</code> folder when I executed <code>ssh localhost</code>. I also tried config the <code>/etc/asl.log</code>:</p>

<pre><code>&gt; /var/log/sshd.log format=raw
? [= Facility auth] file sshd.log
</code></pre>

<p>And the result was the same, can someone help me?</p>
