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
|
mbranch=master
|
||||||
|
|
||||||
#install needed packages
|
#install needed packages
|
||||||
apt install rssh vsftpd -y
|
apt install rssh vsftpd openssh-server -y
|
||||||
|
|
||||||
#Setup groups
|
#Setup groups
|
||||||
groupadd sftpusers
|
groupadd sftpusers
|
||||||
@@ -55,5 +55,7 @@ ufw allow 30000:31000/tcp
|
|||||||
#SSH/SFTP
|
#SSH/SFTP
|
||||||
ufw limit 22/tcp
|
ufw limit 22/tcp
|
||||||
echo "y" | ufw enable
|
echo "y" | ufw enable
|
||||||
#Restart services
|
|
||||||
|
#Restarting and enableing services
|
||||||
|
systemctl enable vsftpd sshd
|
||||||
systemctl restart vsftpd sshd
|
systemctl restart vsftpd sshd
|
||||||
Reference in New Issue
Block a user