Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Distributions»CentOS»How to Install Telnet Server on CentOS/RHEL 6/5

    How to Install Telnet Server on CentOS/RHEL 6/5

    RahulBy RahulFebruary 11, 20141 Min Read

    Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. Using telnet server we can make a connection to a remote host using telnet client and get terminal.

    Telnet server is not secured for remote access, that’s why we do not recommend to use Telnet server for login to remote server. To access Linux system remotely use ssh servers.

    Install Telnet Server

    Telnet server is available under default yum repositories. Execute following command to install it

    # yum install telnet-server
    

    Enable Telnet Service

    Telnet is an xinetd based service, First edit telnet xinetd configuration file /etc/xinetd.d/telnet and set disable to no.

    service telnet
    {
            flags           = REUSE
            socket_type     = stream
            wait            = no
            user            = root
            server          = /usr/sbin/in.telnetd
            log_on_failure  += USERID
            disable         = no
    }
    

    Now restart xinetd service

    # service xinetd restart
    

    Connect to Telnet Server

    Now connect to Telnet server using telnet client. For this example, we are connecting to Telnet server from windows host

    c:> telnet svr1.tecadmin.net
    
    CentOS release 6.5 (Final)
    Kernel 2.6.32-431.17.1.el6.i686 on an i686
    login: rahul
    Password:
    Last login: Tue Apr 29 19:19:24 from 192.168.1.115
    [[email protected] ~]$
    
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Create a WebSite/AppPool in IIS using Command
    Next Article Install Opera 12.16 Web Browser in CentOS/RHEL and Fedora

    Related Posts

    How to Install Let’s Encrypt (Certbot) on CentOS 8

    Updated:September 11, 20203 Mins Read

    How To Install Memcached on CentOS/RHEL 8

    Updated:August 8, 20201 Min Read

    How to Install Gradle on CentOS 8

    Updated:April 19, 20202 Mins Read

    How to Install Apache, MySQL & PHP (LAMP) on CentOS 8

    6 Mins Read

    How to Install ownCloud on CentOS 8

    Updated:March 24, 20203 Mins Read

    How to Install and Configure Gitlab on CentOS 8

    Updated:March 21, 20204 Mins Read

    2 Comments

    1. GajendraPlyam on November 8, 2020 1:53 pm

      Error: -bash: telnet: command not found
      Solution:
      sudo -i —-> login with root user
      yum install -y telnet ——> To install the telnet package run the below command.
      telnet localhost 25 —–>To test a telnet command run the below command as an example.
      quit —–>exit

      Reply
    2. DINESH KUMAR D on August 19, 2017 11:02 am

      GOOD EVENING
      i have install redhat linux 5.7 ,and configure the telnet server but not working well not connect the telnet for server or client
      error
      telnet : connect to address 192.168.5.1: connection refused
      telnet : unable to connect to remote host: connection refused
      pls help it
      thanks

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    • (Resolved) Please install all available updates for your release before upgrading
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.