Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sftp-chroot

This project aims to provide a working solution for home directory-jailed SFTP using OpenSSH-server's internal-sftp subsystem and automount(8).

Project page

See mle86.github.io/sftp-chroot for more information on how this project was built.

Features

  • Simple installation script
  • Regular SSH logins are not affected
  • sftp group members can use SFTP only
  • sftp group members can only access their own home directories
  • Lightweight chroot'ing (without /dev etc.)
  • SFTP pwd shows correct path names
  • No additional per-user configuration needed

Limitations

Since this solution uses the internal-sftp subsystem, only SFTP connections are supported, but SCP or rsync won't work.

Installation

Run sudo ./install.sh. This is what it will do:

Every operation will ask for manual confirmation (y) first, so you can skip steps with n or abort the entire installation process at any time with Ctrl-C.

Author

Maximilian Eul <maximilian@eul.cc>

https://github.com/mle86/

About

Working homedir-jailed SFTP – https://mle86.github.io/sftp-chroot/

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages