mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-09 11:41: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
|
# 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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user