mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Jailed SFTP via OpenSSH
This commit is contained in:
parent
f451b8a99a
commit
93b2a8617a
8 changed files with 344 additions and 0 deletions
|
@ -51,6 +51,11 @@ if [ "$?" != 0 ]; then
|
|||
sed -i "/^$ftp_user:/d" /etc/shadow
|
||||
fi
|
||||
|
||||
# Deleting sftp jail
|
||||
if [ ! -z "$SFTPJAIL_KEY" ]; then
|
||||
$BINv-delete-user-sftp-jail $ftp_user
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue