How to change ssh port in linux ?

How to change ssh port in linux ?
I suggest to change the port for security reason. Because every second there are a lot of bruteforcer keep brute force our sshd port, the original port is 22. If you change to another port, then they may skip you and go find for another victim or maybe they need time to find the port.

login as root

# vi /etc/ssh/sshd_config

The original is

# Port 22

Change to any port that is not using by other services, example
Port 1337

Then write and quit

Restart the SSHD service
# server sshd restart

How to change the default port for ssh ?
How To Change Default SSH Port in Ubuntu?
Change ssh port in Linux ?
Change ssh port in CentOS ?

Tags: , , , , , , , , ,


Buy me a Caffè Latte

Thank you for the Caffè Latte

2013/02/15 saw art
2013/01/25 Parul Patel
2012/11/20 Barbara Nicholas $10
2012/10/08 Amy Stockman $5
2012/07/15 siewho chang $ 50
2012/06/08 Susan Hampton $10
2012/05/11 Chris Grima $10