Change original port number [closed]

Posted on

Change original port number [closed] – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, security, port, , .

The default port number for ssh is 22 is there a way to implement security by being obscure and changing the original number? So for example ssh would not be on port 22 it would be on lets say 2847.

Solution :

On most Linux system, the ssh port is defined in file :

/etc/ssh/sshd_config

With directive :

# What ports, IPs and protocols we listen for
Port 22

Change port for that directive, let’s say :

# What ports, IPs and protocols we listen for
Port 2847

And restart sshd to apply changes :

service ssh restart

Now ssh should listen on port 2847

Leave a Reply

Your email address will not be published.