fbpx

Logging in, you might have noticed this, sometimes:

dd

 

You will notice that whenever you leave ssh on the standard port, attempted logins fill up your authorization logs. Changing to a different port will make it less frequent.This is because the vast majority of people hunting for any open ssh servers will look for port 22.

If itโ€™s more difficult to scan for your ssh server, your chances of being attacked with an ssh server exploit are reduced. A determined attacker can still find the port if they know your serverโ€™s IP address via another means (perhaps via a website you host) and they can launch attacks once they find it.

But for now lets get those script kiddies off your back!

Follow along the video, or go to the steps below it to change your ssh port.

 

Step 1. Login as root.

1

Step 2. Open the file sshd_config, via the command

vi /etc/ssh/sshd_config

2

Step 3. Press “i”, to get into the insert mode.

3

Step 4. Locate “# Port 22”, change the port to something else, and remove “#”

4

Step 5. Press “Esc”, to get out of the insert mode.

 

Step 6. Type the command “:w”, and hit enter, to write the changes.

6

Step 7. Type the command “:q”, and hit enter, to quit.

7

Step 8. Restart sshd by running the command

service sshd restart

8

 

 

Congratulations!, you are a Tad Bit secure.

 

Categories: Tutorials

1 Comment

Miguel · August 23, 2016 at 4:45 AM

Awersome!
Thank you SO MUCH

True quality info here ๐Ÿ™‚

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.