Sunday, 28 September 2014

How to Hardening SSH in Linux


ssh / Secure Shell is a gate entrance to our servers. so this is one way to be secured and must often in monitoring. much can be done when an attacker is able to take over our ssh server. therefore it is in need of knowledge, how do we secure the ssh server and what we must do to stay safe ssh server.

today many attackers who want to do evil on our servers, therefore we must anticipate correctly. therefore this is a thing that should be done and we know that the ssh server is secure.


lets begin to "hardening ssh server in linux"

Now connect to your server :

ssh user@yourip

and you must go to ssh directory and edit ssh configuration :

cd /etc/ssh/
nano sshd_config

Now we do..

Change Port

edit a default port (22) to any port you want.

#Port 22
Port 1226

Permit root Login

Disable root login to your ssh server

PermitRootLogin no

Limit user Login

if you have a many user in your server, you can limit a user login to your server

AllowUsers me you other

Disable protocol 1

ssh come with protocol 1 and 2, you can disable protocol 1

Protocol 2

Use Key to login

i will back leter for this. jaane


No comments:

Post a Comment