Login into your Server Via Putty or any SSH client.
type in following command
vi /etc/ssh/sshd_config
press "i" to edit file
2, Go down to part that says "#Port 22"
remove the "#" from the front of the line
and edit the port you want
Example
Port 1023
press Esc
type in ":wq" to save the file and exit
type in following command to restart the SSH service.
/etc/init.d/sshd restart
now you can login to your server via new ssh port.
- 14 Користувачі, які знайшли це корисним
Схожі статті
How to Reset Mysql passowrd
Step # 1 : Stop mysql service # /etc/init.d/mysql stop Output: Stopping MySQL database...
Reset forgotten root password on CentOS
1. Boot the system and when you see the following message "Press any key to enter the...
Linux Firewall Fail2Ban
How To Protect SSH with fail2ban on CentOS 6 Step One—Install Fail2Ban Because...
Adding and viewing IP addresses on CentOS servers
To add newly assigned IP addresses from SSH, follow this procedure: (Please follow the steps...
How to change hostname on CentOS Linux
Hostname Change There are 4 steps in a hostname change, luckily all the steps are easy....