R-Ts NetWorks

Server the Best

How to disable root login in linux


How to disable root login in linux

 Login to shell.

Copy and paste below command to server using your favourite editor.
pico -w /etc/ssh/sshd_config

Find the line
Protocol 2, 1

Uncomment it and change it to look like
Protocol 2

Next, find the line
#PermitRootLogin yes

Un-comment it. It looks like
PermitRootLogin no

Save the file Ctrl+X then Y then enter

Now restart the SSH service on server
/etc/rc.d/init.d/sshd restart

 

 

Advertisements

April 30, 2012 - Posted by | Security, Uncategorized |

No comments yet.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: