I transfer files through ssh, from one computer to another. Is there any way I receive a notification on my computer when someone tries to transfer files via ssh?

  • 1
    One approach is to configure the sshd deamon to verbose mode and keep a tab on logs. – mkc Mar 1 '15 at 0:48
  • people can bypass this alert, by transfering with other protocols. so why in the first place? – 把友情留在无盐 Mar 1 '15 at 5:12

Didn't try by myself, but it should be possible to wrap the sftp executable. (check sshd_config for something like: Subsystem sftp /usr/libexec/openssh/sftp-server). It doesn't look to be setuid, so it can be a shell script wrapper. The rest depends on how it is called.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.