How To Configure SSH Security In Redhat Enterprise Linux Rhel-4&5

In This Tutorial We Are Going To Learn How To Configure SSH Security In Redhat Enterprise Linux Rhel-4&5

 

Before Configuring This SSH Security You Must Have Configure SSH Server In Your Linux Machine

Now Here Is The Command Of Configuring SSH Security

Firstly Login With The Root In Linux And After Login First Thing Is You Have To do Yo Have To Create User

Here I Am Creating Users In Linux

#useradd U1 {For Creating User In Linux}
#Passwd U1 {After Then Give The Password To The User}

#useradd U2 {For Creating User In Linux}
#Passwd U2 {After Then Give The Password To The User}

#useradd U3 {For Creating User In Linux}
#Passwd U3 {After Then Give The Password To The User}

 

 

Now Here Is The Command Of Configuring SSH Security

#vim /etc/ssd/sshd_config {This Is The Configuration File Of SSH Server And We Have To Do Some Changes Inside This Conf File}
#service ssh restart
#chkconfig on
#iptables -F
#setenforce = 0

Here Is The Picture You can See What Changes We Have To Do Inside This Conf File

 

#PermitRootLogin  no {After This You Cannot Login With The Root To Ssh Server}
#PermitEmptyPassword No
#Banner  /root/a.txt
AllowUser  U1 U2 {If You Login With The User U1&U2 It Will Login To Ssh Server}
DenyUser  U3   {If You Login To Ssh Server To User U3 So It Will Not Login To Ssh Because We Denied The User U3}

Now If You Login In SSH Through User U1 & U2 So It Will Login Automatically Now If You Want To Login With User U3 So You can’t Login With The User Because We Deny The User U3 In Conf File As You Can See

This Is All How To Configure SSH Security In Redhat Enterprise linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s