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.

3
  • because sshd cannot found /home/home/sftp_user, so after login, it default to the "/"? Commented Nov 21, 2024 at 7:47
  • I change ChrootDirectory from /home to /, then it also works without creating symbolic link, thanks for your solution. Commented Nov 21, 2024 at 7:52
  • 2
    If you use ChrootDirectory /, it's the same as not using ChrootDirectory at all. The ChrootDirectory directive is not necessary for the SFTP server function: it is only needed if you want to restrict the SFTP users to seeing only a strictly limited part of the system. Commented Nov 21, 2024 at 7:58