banner
xingli

xingli

猫娘爱好者

Change SSH port in Linux

Change SSH Port in Linux#

  1. Modify the sshd_config configuration file

Content to be modified: Port 10022

  1. Restart the sshd service
  1. Check the port information
  1. Add port 10022 to the open port list of the firewall

Add port:

Persistently configure port 10022 in the open port list.

  1. Reload the firewall

Command:

Explanation: Reload the firewall to apply the latest configuration.

  1. Check the firewall's allow status for the port

Command:

Explanation: Check if the firewall has allowed the port.

  1. View the list of ports allowed by the firewall

Command:

Explanation: View the list of ports allowed by the firewall.

  1. Connect to the server using Xshell client

After confirming the port modification and opening the firewall, you can use Xshell or other client tools to connect to the server.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.