Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liberodark/sftp_user
https://github.com/liberodark/sftp_user
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/liberodark/sftp_user
- Owner: liberodark
- License: gpl-3.0
- Created: 2021-03-24T09:37:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T09:47:28.000Z (almost 3 years ago)
- Last Synced: 2024-10-30T00:36:44.785Z (3 months ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sftp_user
##### Download sftp_user :
```
wget https://raw.githubusercontent.com/liberodark/sftp_user/main/sftp_users.sh -O /usr/bin/sftp_user
chmod +x /usr/bin/sftp_user
```##### Create sftp group & folder :
```
groupadd sftpusers
mkdir /sftp
```##### Edit sshd_config :
`nano /etc/ssh/sshd_config`
```
# override default of no subsystems
#Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftpMatch Group sftpusers
ChrootDirectory /sftp/%u
PermitTTY no
AllowTcpForwarding no
X11Forwarding no
ForceCommand internal-sftp
```##### Restart server ssh :
`systemctl restart sshd`