This host maintenance note, published on May 21, 2019, is titled "Changing the SSH Port and Setting Up a Firewall to Block Port 22 Login on a Debian System." The environments and tools involved include Linux, Debian, and Ubuntu.
Domain and site configuration
After saving and restarting the rules, the new port will take effect. Why didn't you remove the original port 22 initially, instead of setting rules to block access?
Parameters recorded in the original text
- Version history:CentOS7, centos6, centos7
Matters mentioned in the article
- First, check the current ports and add new ports.
- Second, check the firewall and add ports.
- Third, delete the existing ports and configure the firewall.
Usage Environment
Linux, Debian, Ubuntu.