How to Change SSH Port
How to Change SSH Port
Allow firewall.
sudo iptables -I INPUT -p tcp --dport 22122 -j ACCEPT |
Change ssh port.
echo "Port 22122" | sudo tee /etc/ssh/sshd_config.d/90_port.conf |
Rollback.
sudo rm -f /etc/ssh/sshd_config.d/90_port.conf |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.