{"id":20330556,"url":"https://github.com/mle86/sftp-chroot","last_synced_at":"2026-04-19T01:09:43.975Z","repository":{"id":161260187,"uuid":"60214601","full_name":"mle86/sftp-chroot","owner":"mle86","description":"Working homedir-jailed SFTP – https://mle86.github.io/sftp-chroot/","archived":false,"fork":false,"pushed_at":"2017-06-23T12:34:38.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-07T06:57:53.075Z","etag":null,"topics":["autofs","chroot","internal-sftp","jail","scp","sftp","ssh","sshd"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mle86.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-01T22:20:01.000Z","updated_at":"2025-03-04T17:03:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d06d6d8-a5c1-48f3-8bfb-73f9dd3f9db9","html_url":"https://github.com/mle86/sftp-chroot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mle86/sftp-chroot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fsftp-chroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fsftp-chroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fsftp-chroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fsftp-chroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mle86","download_url":"https://codeload.github.com/mle86/sftp-chroot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mle86%2Fsftp-chroot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31990608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autofs","chroot","internal-sftp","jail","scp","sftp","ssh","sshd"],"created_at":"2024-11-14T20:16:38.777Z","updated_at":"2026-04-19T01:09:43.954Z","avatar_url":"https://github.com/mle86.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sftp-chroot\n\nThis project aims to provide a working solution\nfor home directory-jailed SFTP\nusing OpenSSH-server's **internal-sftp** subsystem\nand **automount**(8).\n\n\n## Project page\n\nSee\n[**mle86.github.io/sftp-chroot**](http://mle86.github.io/sftp-chroot/)\nfor more information\non how this project was built.\n\n\n## Features\n\n* Simple installation script\n* Regular SSH logins are not affected\n* `sftp` group members can use SFTP only\n* `sftp` group members can only access their own home directories\n* Lightweight chroot'ing (without */dev* etc.)\n* SFTP `pwd` shows correct path names\n* No additional per-user configuration needed\n\n\n## Limitations\n\nSince this solution uses the *internal-sftp* subsystem,\nonly SFTP connections are supported,\nbut SCP or rsync won't work.\n\n\n## Installation\n\nRun `sudo `[`./install.sh`](install.sh).\nThis is what it will do:\n\n* `apt-get install autofs`,\n* copy [`autofs-sftp-jails.sh`](autofs-sftp-jails.sh) to `/etc/`,\n* copy [`jails.autofs`](jails.autofs) to `/etc/auto.master.d/`,\n* create a new `sftp` user group,\n* append [`sshd_config.add`](sshd_config.add) to `/etc/ssh/sshd_config`.\n\nEvery operation will ask for manual confirmation (`y`) first,\nso you can skip steps with `n`\nor abort the entire installation process at any time with Ctrl-C.\n\n\n## Author\n\nMaximilian Eul\n\\\u003cmaximilian@eul.cc\\\u003e\n\nhttps://github.com/mle86/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmle86%2Fsftp-chroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmle86%2Fsftp-chroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmle86%2Fsftp-chroot/lists"}