commit
This commit is contained in:
6
setup.sh
6
setup.sh
@@ -2,7 +2,7 @@ mrepo=https://git.bprieshof.nl/Work/BCK-ServTest
|
||||
mbranch=master
|
||||
|
||||
#install needed packages
|
||||
apt install rssh vsftpd -y
|
||||
apt install rssh vsftpd openssh-server -y
|
||||
|
||||
#Setup groups
|
||||
groupadd sftpusers
|
||||
@@ -55,5 +55,7 @@ ufw allow 30000:31000/tcp
|
||||
#SSH/SFTP
|
||||
ufw limit 22/tcp
|
||||
echo "y" | ufw enable
|
||||
#Restart services
|
||||
|
||||
#Restarting and enableing services
|
||||
systemctl enable vsftpd sshd
|
||||
systemctl restart vsftpd sshd
|
||||
Reference in New Issue
Block a user