How To Change Openssh Port Number In Linux?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/change-openssh-port-number-linux/
PINTEREST
PINTEREST
INSTAGRAM

Remote access is themain method while managing Linux systems. Remote access must be secured accordingly. Openssh suite which implements Ssh provides this security with server and client side. Openssh also provides auxiliary tools to make copying or identity management easily and securely.

Openssh servers run by default tcp port 22. We call it generally ssh port. Ssh port number is know for the whole world so attackers can attack to beat our Openssh server like brute forcing.

Get Ssh Server Port Number From Ssh Configuration

Ssh server configuration file can be found at /etc/ssh/sshd_config . We will find related configuration line like below.

We can see that default configuration is used for ports because they are commented.

Change Ssh Server Port Number

We will open configuration file and add line below

Keep in mind be sure there is no other application using this port.

Restart Ssh Server To Apply Configuration

We will restart our Openssh server like below to load with new configuration.

Check New Port

We can check the new port number of Openssh server like below.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/change-openssh-port-number-linux/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  Best Terminal Emulators For Linux

Leave a Reply

Your email address will not be published.