How do I Telnet as the Root User?

by nixcraft on March 24, 2006 · 7 comments

Q. How do I telnet as the root user?

A. This is really a bad idea as telnet is insecure, because passwords are sent as clear text format. Instead, you should use SSH for connections. I suggest that you use SSH to connect to a system instead of Telnet for security purposes. By default, for security purposes, the root user can not telnet. However, here is method in case you need root access via telnet:

Edit /etc/pam.d/login and /etc/pam.d/remote files using a text editor such as vi. Find the line that read as follows:

auth       required     pam_securetty.so

Comment it out by prefixing # symbol:

#auth       required     pam_securetty.so

Save and close the file. Now, you should be able to telnet to your system as the root user.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 7 comments… read them below or add one }

1 vivek October 14, 2006

very correct.

Reply

2 Munavar March 6, 2007

i learn more things from this site, its very useful forme. thankyou

Reply

3 Graham March 27, 2007

This won’t work in Ubuntu from at least Dapper. As inetd is not installed by default you will also need to install the netkit-inetd package.

Reply

4 Astro.Geekjoy March 23, 2008

Hi,

telnet is just fine for the home user behind a wireless router and cable modem using private IPs. Learning how to setup and use telnet is a fine first step to Linux expertise. Implementing it helps build skills on the console and confidence in the ability to configure a system. Most newbies will later go on to ssh.

And just think it all first began with telnet…

Cheers,

Reply

5 daya October 31, 2008

Really this is very good forum.i will spread this among my all friends.

Reply

6 Priya August 29, 2011

I tried doing the above process but was not able to login using telnet.
i am using CentOS

Is there anything i am missing?

Reply

7 Hussain Free December 12, 2011

for ubuntu 11.10

auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die] pam_securetty.so

commit this line
#auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die] pam_securetty.so

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 4 + 6 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: