Jailed SFTP via OpenSSH

This commit is contained in:
Serghey Rodin 2015-09-18 17:42:48 +03:00
commit 93b2a8617a
8 changed files with 344 additions and 0 deletions

View file

@ -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 #