Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    Note that the part that starts with "Match User testuser" must be at the END of the file, as it will include configuration lines only if the user is "testuser" from that point on. Commented Oct 5, 2012 at 14:10
  • 2
    Is it also possible to Chroot only for the SFTP Protocol, but to still allow normal SCP connections? Commented Mar 22, 2013 at 15:16
  • 2
    On my Ubuntu 14.04 machine, it was also necessary to change the Subsystem sftp /usr/lib/openssh/sftp-server line to Subsystem sftp internal-sftp -f AUTH -l VERBOSE Commented Sep 23, 2015 at 1:41
  • 1
    @Magnus or until another Match section. Commented Jan 10, 2016 at 17:21
  • After doing this, I am unable to connect to the server (Debian 10). If I do sftp [email protected] then I obtain Connection to myserver.com closed by remote host.. I tried using FileZilla but also failed: Status: Connection established, waiting for welcome message... Error: Connection timed out after 20 seconds of inactivity. Could you please help? Commented Apr 28, 2021 at 17:47