How to enable SFTP logging?

Posted on 2008-11-17
Last Modified: 2013-12-09
I've got a Fedora 8 box running openssh-server 4.7p1 and I'm trying to enable SFTP logging.  I tried enabling SftpSysLogFacility in /etc/ssh/sshd_config, but that just gives me a "Bad configuration option" on startup.

Any thoughts?

Question by:CCTV17
    1 Comment
    LVL 48

    Accepted Solution

    The default syslog configuration for sftp is AUTH.ERROR.  To change this
    edit /etc/ssh/sshd_config

    and change the line

    Subsystem sftp /usr/lib/openssh/sftp-server


    Subsystem sftp /usr/lib/openssh/sftp-server -f LOCAL1 -l INFO

    Adjust the syslog facility and level to suit your needs.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Over the past decade, as Internet security has become a chief concern of IT professionals, one of the most common questions administrators and users ask is, “Which is more secure, SFTP or FTPS?” In short, both file transfer protocols offer a high…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now