Modify SSH port on Debian system

Original link: https://hsiaofeng.com/archives/182.html

Edit the Port of the configuration file:

 vi /etc/ssh/sshd_config

Release port:

 iptables -A INPUT -p tcp --dport 端口号-j ACCEPT

Save and restart the SSH service:

 iptables-save > /etc/iptables.up.rules /etc/init.d/ssh restart

refer to

https://www.laozuo.org/14001.html

This article is reproduced from: https://hsiaofeng.com/archives/182.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment