Ubuntu Linux enable telnet service

Q. How do I install and start telnet service / server under Ubuntu Linux?


A. Telnet is an insecure service. It is recommended that you use ssh service. However sometime telnet server or service is needed. Here are instructions to enable telnet:

Install telnetd server

$ sudo apt-get install telnetd
Restart inetd service:
$ sudo /etc/init.d/openbsd-inetd restart
You should now be able to telnet to the server from Windows or Linux desktop system to Ubentu Linux telnet server. Type the following command to connect to Telnet server:
$ telnet ubentu-linux-server-ip
$ telnet
$ telnet ubentu.mydomain.com

See also:

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

20 comments… add one
  • Oliver Luvian Mar 29, 2010 @ 19:01

    Gracias amigo, me saco de apuros

    Thank You :-)

  • gfun Jun 8, 2010 @ 7:30

    Thank you man
    you’re the best

  • Suspense Sep 8, 2010 @ 6:43

    It really works… thanks a lot dude.. I’m trying this from a month ago and it was not working.
    It was really a great…. thanks once again.

  • Rajeev Apr 25, 2011 @ 8:49

    while trying this command : sudo /etc/init.d/openbsd-inetd restart
    I got this message:
    * Restarting internet superserver inetd
    * Not starting internet superserver: no services enabled

    However I have installed the telnetd successfully by using this command:
    sudo apt-get install inetutils-telnetd

  • Parul Sep 23, 2011 @ 4:52

    I ran following two commands on my laptop running edubantu
    $ sudo apt-get install telnetd
    $ sudo /etc/init.d/openbsd-inetd restart

    Then I went to my Windows XP laptop and tried to ping/telnet the edubantu IP address but it does not recognize that.
    Am I missing some thing.


  • shrek Nov 18, 2011 @ 18:38

    thanks . I was searching for it.

  • qubik Feb 13, 2012 @ 21:13

    Muy util, me ha servido de maravilla. Muchas gracias! :)

  • Awais Shah Oct 11, 2012 @ 7:35

    Thnx buddy… it helped me… thats the nice one… :)

  • plaa plaa Apr 22, 2014 @ 12:12

    worked also on ubuntu 14.04 lts server, thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.