1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-24 18:21:34 -05: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 # Setup ufw
sudo apt install ufw -y sudo apt install ufw -y
sudo ufw enable sudo ufw enable
sudo ufw allow 22/tcp sudo ufw allow OpenSSH
# Harden SSH # Harden SSH
echo 'GSSAPIAuthentication no echo 'GSSAPIAuthentication no

View File

@ -25,7 +25,7 @@ sudo systemctl restart chronyd
sudo apt purge -y ufw sudo apt purge -y ufw
sudo snap install ufw sudo snap install ufw
sudo ufw enable sudo ufw enable
sudo ufw allow 22 sudo ufw allow OpenSSH
# Harden SSH # Harden SSH
echo "GSSAPIAuthentication no" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf echo "GSSAPIAuthentication no" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf