Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liberodark/sftp_user


https://github.com/liberodark/sftp_user

Last synced: about 1 month ago
JSON representation

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-sftp

Match Group sftpusers
ChrootDirectory /sftp/%u
PermitTTY no
AllowTcpForwarding no
X11Forwarding no
ForceCommand internal-sftp
```

##### Restart server ssh :

`systemctl restart sshd`