Security Tip of the Day - Change your SSH port | Stopping Hackers | Forum

 
You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Security Tip of the Day – Change your SSH port

Post
Admin

mscott

posts 3

9:51 pm August 29, 2011

Post edited 9:53 pm – August 29, 2011 by mscott


Ok, so if you look at your logs you will see people from all over the world are trying to log into your SSH so they can take control of your server.. I'm not trying to scare you, it's just the truth. You NEED a good firewall (and mod_security) to stop this, but here is a quick tip to cut down on some of it without installing those. First open:

/ etc / ssh / sshd_config

 

and look for this line:

#Port 22

 

Change it to:

Port 6

 

This is assuming port 6 is unused on your server. Note the line originally had a # before it which means the config wasn't reading it and running on the default port (22). Remove the # if it's there.. if not just change the number to 6. Now if you ARE running a firewall open port 6 and close port 22 and restart SSH and the firewall. Done! Now all those mindless bots won't even get to try and crack your password! Laugh Don't forget to tell anyone who has SSH access to change the port in their FTP/SSH software!


About the Secure My Website! Forum

Forum Timezone: UTC -4

Most Users Ever Online: 9

Forum Stats:

Groups: 3
Forums: 6
Topics: 4
Posts: 6

Membership:

There are 2 Members

There are 2 Admins