ssh configuration trick to add more security.
You already know that ssh use default port 22 in ssh configuration for making the connection with the server. So anybody (hacker) can try with the same port for connecting to server. But what if he/she don’t know the port for ssh for connection, yes off course then he/she has to do lot off effort for identifying the port number for connection.
So here we go for practical way of adding more security to the server by changing the default port in ssh configuration.
1. Firstly we tried to connect with default port 22.
[root@kalwa1 ~]# ssh email@example.com
Red Hat Enterprise Linux Server release 6.2 (Santiago)
Kernel \\r on an \\m
Last login: Sun Jun 28 02:43:07 2015 from kalwa1.home.com
2. Now let’s make the change in the port number in ssh configuration, in order to order add more security.
- Login as root