You can change the default SSH port for your Linux server as an added security measure.
To Change the SSH Port for Your Linux Server
1) Connect to your server via SSH (Using Putty in Windows or Terminal in Linux)
2) Switch to the root user with su -
3) Use any text editor such as nano or vim or vi
ie: vi /etc/ssh/sshd_config
4) Locate the following line:
# Port 22
5) Remove # and change 22 to your desired port number.
6) Make sure you save the file sshd_config and exit the editor
7) Restart the sshd service by running the following command:
service sshd restart
Note: Make sure the new SSH port does not conflict with any known or blocked ports
- CSpace Hostings https://cspacehostings.com
- ssh, port change, changing ports
- 4 Els usuaris han Trobat Això Útil
Articles Relacionats
Powered by WHMCompleteSolution