It is always dangerous to run SSH on port 22. So better not to be late one should always change SSH Port to something other. Below is a method to change ssh port.

A) Login to your server through PUTTY

B) Run the commands below:

nano /etc/ssh/sshd_config

search for the line #Port 22 . Uncomment it and change 22 to something else. Press ctrl+o to save and press x to exit.



C) Restart SSH

service sshd restart

*Note: If nano is not installed run (yum -y install nano)

آیا این پاسخ به شما کمک کرد؟ 7 کاربر این را مفید یافتند (7 نظرات)