2

I have enabled logging in SFTPD by adding including the following in my /etc/sshd_config

subsystem       sftp    /usr/libexec/sftp-server -l DEBUG

But I can't find any log files. Where does sftp log on OS X v10.9.2 ?

  • On what version of Apple's OS did you make this change? – bmike May 1 '14 at 23:33
  • The version is v10.9.2 – Synesso May 1 '14 at 23:50
1

On my machine, (10.9.2) changing the log level for the sftp server in sshd just makes everything spit out onto /var/system.log/ along with the rest of sshd's log output.

e.g. part of my system.log filtered for 'sftp' after a single connect

May  1 19:57:55 joes-imac.local sshd[50141]: subsystem request for sftp by user joe
May  1 20:01:09 joes-imac.local sshd[50199]: subsystem request for sftp by user joe
May  1 20:01:09 joes-imac.local sftp-server[50200]: session opened for local user joe from [::1]
May  1 20:01:09 joes-imac.local sftp-server[50200]: received client version 3
May  1 20:01:09 joes-imac.local sftp-server[50200]: realpath "."
May  1 20:02:31 joes-imac.local sftp-server[50200]: opendir "/Users/joe"
May  1 20:02:31 joes-imac.local sftp-server[50200]: sent status End of file
-1

Use the log program. Look at its man page.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

You must log in to answer this question.

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