This is a quick tutorial about changing SSH port on a Linux server.
Login to your server
Open the following file in your favorite text editor
/etc/ssh/sshd_config
Locate “#Port 22″
Remove the # in front and change 22 to whatever number you wish to use as your port. It should look like “Port 86868″. Save the file
Restart SSH daemon using following command
service sshd restart
Login to your server
Open the following file in your favorite text editor
/etc/ssh/sshd_config
Locate “#Port 22″
Remove the # in front and change 22 to whatever number you wish to use as your port. It should look like “Port 86868″. Save the file
Restart SSH daemon using following command
service sshd restart
No comments:
Post a Comment