How do I change the default port in Linux?

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

Tìm kiếm

Back
Top