You are not logged in.

#1 2016-05-09 07:07:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Cannot get sftp transfers to log into the systemd journal

Much like this old thread, I'd like to have sshd write entries into the journal logging sftp transfers.  I tried the solution linked in the thread above but `journalctl -u sshd` is not showing the transfers.  To save you time, the solution is to add the following line to /etc/ssh/sshd_config (and then restarting sshd.service):

Subsystem sftp  /usr/lib/ssh/sftp-server -f AUTH -l VERBOSE

I can transfer files via filezilla but I don't get anything in `journalctl -u sshd` that shows these transfers, just a few lines showing I connected.  Any thoughts?  Thanks!

May 09 03:03:53 phobos sshd[3583]: Accepted publickey for graysky from xxx.xxx.xxx.xxx port 18831 ssh2: RSA SHA256:eA/1aDwAE29G++qJhFZ3aFGrQJvmw1xIoplpEa+XYHz
May 09 03:03:53 phobos sshd[3583]: pam_unix(sshd:session): session opened for user graysky by (uid=0)
May 09 03:04:15 phobos sshd[3616]: Accepted publickey for graysky from xxx.xxx.xxx.xxx port 34932 ssh2: RSA SHA256:eA/1aDwAE29G++qJhFZ3aFGrQJvmw1xIoplpEa+XYHz
May 09 03:04:15 phobos sshd[3616]: pam_unix(sshd:session): session opened for user graysky by (uid=0)

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB