Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»CentOS»How to Install Telnet Server on CentOS/RHEL 6/5

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

    By 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.

    Advertisement

    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

    Related Posts

    Installing certbot on CentOS 8

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

    How To Install Memcached on CentOS/RHEL 8

    How To Install Memcached on CentOS/RHEL 8

    How to Install Gradle on CentOS 8

    View 2 Comments

    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

    Advertisement
    Recent Posts
    • The Difference Between Git Reset –soft, –mixed, and –hard
    • Understanding the Staging Area in Git’s Workflow
    • Python Function with Parameters, Return and Data Types
    • free Command in Linux (Check Memory Uses)
    • Git Rebase: A Practical Guide
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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