1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-09-18 13:14:43 -04:00

Allow openssh instead of 22/tcp on Debian systems

This commit is contained in:
Tommy 2023-08-22 17:51:33 -07:00 committed by GitHub
parent 85ada77f4c
commit 0880786054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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