We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

need to disable root login (ssh and telnet) to unix servers

sonriks
sonriks asked
on
Medium Priority
1,016 Views
Last Modified: 2012-05-11
I have setup sudo for all users. How do I now disable root ssh and telnet logins?

Thanks
Comment
Watch Question

open your ssh config file with your favorite editor

add
PermitRootLogin no

restart the ssh daemon

drink soda
Top Expert 2011

Commented:
If you use Solaris, then eidt /etc/default/login
 and uncomment out the following line as follows:
---------
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.

CONSOLE=/dev/console
---------

Author

Commented:
Thanks,What about HP and Linux? It's a mixed environment.
Top Expert 2011
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
thanks for all the options! I'll give it a try.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.