How to change your SSH port! (Security Tutorial)
#1
Why change your SSH port?
This is important to stop a majority of brute force attacks. I suggest you change it due to a recent brute force attempt on a FreeVPS VPS! 
(This was taken from @Optimus, he made a quick explanation on how to do it, but I will enhance it)

Prerequisites:
- You need root access
- Around 5-10 minutes

Tutorial:

Let's begin by editing SSH Configuration:

Code:
vi /etc/ssh/sshd_config

After entering SSH Configuration, look for the following line:

Code:
#Port 22

After finding the line, uncomment it and change the port. Ports can be between 30 and 65535. Pick a random one. I would advise using "catchy" numbers like: 1111, 2222, 3333, 1234, 1212, 6969, etc. Here's an example of what the line should look like.

Code:
Port 54132

Once you have changed the line, save the file! You have successfully changed your SSH port! Note: You may need to restart your VPS to apply the changes.

If you want to be extra secure, disable root login!
EraHost | Great affordable hosting! Get yours today ==> | https://www.erahost.info
Administrator on EsotericForums ==> https://esotericforums.net
Thank you NoUptime for your Wonderful VPS and Service ==> | https://nouptime.host
[Image: img.php?userid=19312]
Spoiler: show
NoUptime SSD VPS:
[Image: 6072702203.png]
VPS 18:
Thanks to FreeVPS for VPS18
[Image: 6072706927.png]
#2
I wouldn't agree about the security part..
The hacker can easily do a portscan on your VPS IP, and get all running ports with their services, he can find your SSH port in minutes literally.
VPS 14 by NodeBlade and VPS 21 by Hostmada.
Thanks FreeVPS Smile
#3
(2016-12-23, 3:06:52 pm)rcoliveirajr Wrote: I wouldn't agree about the security part..
The hacker can easily do a portscan on your VPS IP, and get all running ports with their services, he can find your SSH port in minutes literally.

You are (partially) right about that, though there also are bruteforcers who only attack on the default port, port 22. Only changing the SSH port does not completely prevent you from being bruteforced, but it might help reducing them since abovementioned won't attack you any longer.
Thanks to FreeVPS and Hostigation for my VPS 18!
[Image: img.php?userid=20285]
#4
You are right @Rick and try to not use neither 2222 or 22222 that for bruteforce attacks are considered default ports too. I made that mistake in the past and I had to reinstall my vps and change again the port por ssh.
Thanks FreeVPS.us and Hostigation for VPS 18
[Image: img.php?userid=18506]




Users browsing this thread: 1 Guest(s)

Switch to mobile version

Sponsors: FuzzyHosts - Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - HostMada - Host4Fun - Evolution-Host - NodeBlade - HostDare


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo