Linux Server

Changing the SSH Port for Your Linux Server

You can change the default SSH port for your Linux server as an added security measure.
 Warning: Make sure the new SSH port does not conflict with any known or blocked ports.
To Change the SSH Port for Your Linux Server
1.      Connect to your server via SSH
2.      Switch to the root user


3.      Run the following command:
vi /etc/ssh/sshd_config

1.      Locate the following line:
# Port 22

1.      Remove # and change 22 to your desired port number.
2.      Restart the sshd service by running the following command:

service sshd restart
loading...

No comments:

Powered by Blogger.