banner
xingli

xingli

猫娘爱好者

Linux SSH Tutorial

+++
title= "Linux Change SSH Port Tutorial"
date= "2023-04-01"
+++

Change SSH Port on Linux#

  1. Modify sshd_config file

Edit the following: Port 10022
2. Restart sshd service

  1. Check port information
  1. Add port 10022 to the firewall open port list
    Add the port:

Persist the configuration of port 10022 in the open port list.
6. Reload the firewall
Command:

Explanation: Reload the firewall to apply the latest configuration.
7. Check the firewall status of the open port
Command:

Explanation: Check the firewall status of the open port.
8. View the list of open ports in the firewall
Command:

Explanation: View the list of open ports in the firewall.
9. Connect to the server using Xshell client
After confirming the port modification and firewall opening, you can use tools like Xshell to connect to the server.

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