mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-24 02:01:33 -05:00
Allow openssh instead of 22/tcp on Debian systems
This commit is contained in:
parent
85ada77f4c
commit
0880786054
@ -15,7 +15,7 @@ sudo apt upgrade -y
|
||||
# Setup ufw
|
||||
sudo apt install ufw -y
|
||||
sudo ufw enable
|
||||
sudo ufw allow 22/tcp
|
||||
sudo ufw allow OpenSSH
|
||||
|
||||
# Harden SSH
|
||||
echo 'GSSAPIAuthentication no
|
||||
|
@ -25,7 +25,7 @@ sudo systemctl restart chronyd
|
||||
sudo apt purge -y ufw
|
||||
sudo snap install ufw
|
||||
sudo ufw enable
|
||||
sudo ufw allow 22
|
||||
sudo ufw allow OpenSSH
|
||||
|
||||
# Harden SSH
|
||||
echo "GSSAPIAuthentication no" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
||||
|
Loading…
Reference in New Issue
Block a user