To change the SSH connection port on your server, you need to make a change in the main configuration file of the SSH service.
nano /etc/ssh/sshd_configOpen the file for editing. Find the line that says:
Port 22(Remove the # at the beginning if present) and replace the default port 22 with your desired port. Do not forget to make the relevant setting in your firewall for this port. Finally, run the following to activate the settings:
/etc/init.d/sshd restart
Leave a Comment
* Your comment will be published after approval.
Comments
0No comments yet. Be the first to comment!