-6

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.

secure212
  • 228
  • 1
  • 3
  • 10

1 Answers1

1

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

krisFR
  • 13,500