Phạm Thanh Nam
New member
How do I change the default port in Linux?
Answer
To change the port for the SSH server, follow these steps:
Answer
To change the port for the SSH server, follow these steps:
- Log in to the server as root using SSH.
- Open the /etc/ssh/sshd_config file in your preferred text editor (nano, vi, etc.).
- Locate the following line: Port 7822. …
- Change 7822 to the new port number that you want to use.