Changing The default port 22 to other port is considered as a security measure.

I am sure that 90 % of members here use the default port

STEP1 : Login to your V.P.S / Dedi by using a SSH client like Putty.




STEP2: Editing /etc/ssh/sshd_config

Using your favourite editor,edit /etc/ssh/sshd_config
PHP Code: 
nano /etc/ssh/sshd_config 
Default port will be 22 ..change it to a value of your wish, but make sure its not binded by another application and not blocked by firewall.

Restarting SSHD

For CentOS
PHP Code: 
/etc/init.d/sshd restart 
For Debian/ Ubuntu
PHP Code: 
/etc/init.d/ssh restart 
PS:
*Make sure to remember the new ssh port.
*Just changing the port 22 to something else wont make your box secure, it gives more work to the hacker to guess/find the ssh port.


Post a link back to this thread while posting this somewhere else
desiboy Reviewed by desiboy on . Changing SSH Port on your VPS/DEDI Changing The default port 22 to other port is considered as a security measure. I am sure that 90 % of members here use the default port STEP1 : Login to your V.P.S / Dedi by using a SSH client like Putty. http://desiimg.com/images/screengog.png STEP2: Editing /etc/ssh/sshd_config Rating: 5