+++
title= "Linux Change SSH Port Tutorial"
date= "2023-04-01"
+++
Change SSH Port on Linux#
- Modify sshd_config file
Edit the following: Port 10022
2. Restart sshd service
- Check port information
- 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.