// Secure ssh with changing port
nano /etc/ssh/sshd_config
Port 2222
...
# Restart sshd service and add port to firewall
service sshd restart
iptables -A INPUT -p tcp --dport 2222 -j ACCEPT
// Disable ssh password and using ssh keys
# https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-debian-9
Last active
November 18, 2018 19:09
-
-
Save zoonderkins/6ee9a9710d763a82f5472fe63571db73 to your computer and use it in GitHub Desktop.
Secure SSH tips #linux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment