4

I know in Ubuntu they are in /var/log/auth.log but I can't find where they are logged on the iPhone. Ive made sure logging is enabled and have looked in /var/log and /var/logs as well as pretty much everywhere. Still cant find where the attempts are being logged.

  • I've looked everywhere, and I can't find any log file for sshd. – Andrew Larsson Jan 6 '14 at 22:55
  • Same here. It seems as if maybe there isn't a log... – cbalos Jan 7 '14 at 4:51
3

I just found the answer to this

you have to manually edit /Library/LaunchDaemons/com.openssh.sshd.plist

change this part:

<key>ProgramArguments</key>
<array>
    <string>/usr/sbin/sshd</string>
    <string>-i</string>
</array>

to this:

<key>ProgramArguments</key>
<array>
    <string>/usr/sbin/sshd</string>
    <string>-E /var/log/auth.log -i</string>
</array>

then reboot or restart sshd

  • Nice! I sold my iPhone so I chalked it up as a lost cause, but still this is very useful. – cbalos May 2 '14 at 2:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .