- Connect to your server via SSH as root user.
- Run the following command:
vi /etc/ssh/sshd_config
- Locate the following line:
# Port 22
- Remove # and change 22 to your desired port number.
- Restart the sshd service by running the following command:
service sshd restart
- change ssh port of server
- 0 Users Found This Useful