How do I Telnet as the Root User?

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

Comment it out by prefixing # symbol:

#auth       required

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

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 10 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
10 comments… add one
  • vivek Oct 14, 2006 @ 7:13

    very correct.

  • Munavar Mar 6, 2007 @ 6:01

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

  • Graham Mar 27, 2007 @ 8:23

    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.

  • Astro.Geekjoy Mar 23, 2008 @ 1:15


    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…


  • daya Oct 31, 2008 @ 12:08

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

  • Priya Aug 29, 2011 @ 6:58

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

    Is there anything i am missing?

  • Hussain Free Dec 12, 2011 @ 13:14

    for ubuntu 11.10

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

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

  • Ashutosh Feb 5, 2014 @ 3:29

    its works also if we made changes in /etc/pam.d/remote only :)

  • GMShiralkar May 27, 2014 @ 10:00

    It is very nicely work in centos 6.3

  • Jash Jul 7, 2016 @ 13:31

    ‘cyberciti’ is the first thing I search whenever I come across any problem in Linux/UNIX because the answer will be final here. Thanks a lot!!! :)

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum