you're reading...

Disable root user remote access in Linux

Disable root remote login in Linux (SLES, CENTOS, Oracle Linux, Red Hat)

It is the best practice to disable the root remote login in Linux. Login as a system user, then login as root if it is necessarily.

[oracle@testdb01 ~]$ id
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba),1003(racoper),1004(asmdba)

[oracle@testdb01 ~]$ su - root
[root@testdb01 ~]#

To do this, using following

[root@testdb01 ~]# vi /etc/ssh/sshd_config

Change the following to “no”

PermitRootLogin no

Restart sshd

[root@testdb01 ~]# service sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]

About daviewning

I am an Oracle DBA


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 )

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

%d bloggers like this: