How do I Telnet as the Root User?

by nixcraft [Last updated: November 4, 2008]

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.

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 5 comments… read them below or add one }

1 vivek 10.14.06 at 7:13 am

very correct.

2 Munavar 03.06.07 at 6:01 am

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

3 Graham 03.27.07 at 8:23 am

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.

4 Astro.Geekjoy 03.23.08 at 1:15 am

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,

5 daya 10.31.08 at 12:08 pm

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

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tagged as: , , , , , , ,

Previous post: How do I turn on telnet service on for a Linux / FreeBSD system?

Next post: How do I setup round robin DNS?