I have the following services running:

sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
syslog          0:off   1:off   2:on    3:on    4:on    5:on    6:off
tcsd            0:off   1:off   2:off   3:off   4:off   5:off   6:off
vsftpd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
xinetd          0:off   1:off   2:off   3:on    4:on    5:on    6:off

xinetd based services:
        chargen-dgram:  off
        chargen-stream: off
        daytime-dgram:  off
        daytime-stream: off
        discard-dgram:  off
        discard-stream: off
        echo-dgram:     off
        echo-stream:    off
        tcpmux-server:  off
        telnet:         on
        time-dgram:     off
        time-stream:    off

why i still got "-bash: telnet: command not found " error?


  • telnet is actually a client utility not a service, which is why it doesn't appear in the services list. – vmfarms Aug 27 '10 at 0:30
up vote 7 down vote accepted

The RHEL/CentOS 5.4 telnet client is installed at /usr/kerberos/bin/telnet. Your $PATH variable thus needs /usr/kerberos/bin listed. (Preferably before /usr/bin) If for some reason you don't have that file installed, it's part of the package krb5-workstation. Installing that package manually or via YUM should give you what you need.

You can check quick with which telnet to see if it's found anywhere in your path. echo $PATH to see what directories are being checked, and rpm -q krb5-workstation to see if you have the package installed.

--Christopher Karel

  • thanks, i installed krb5-workstation package, it works now! – Wei Aug 27 '10 at 0:33
  • 1
    How about RHEL 6? I have same issue on RHEL 6 and there is no such package (krb5-workstation) nor is such a folder as /usr/kerberos/bin – Mohsen May 15 '12 at 11:34
  • 1
    On Amazon Linux 2, I have installed krb5-workstation and still cannot find any references to telnet. The folder /usr/kerberos does not exists. I got it to work running "yum install telnet" – demonicdaron Nov 16 at 16:13

Do you have a telnet client installed? Sounds like you only have the daemon installed currently... either that or your environment is setup wrong. Ie, the command telnet does not appear anywhere defined in $PATH

  • thanks, what else i need to install? – Wei Aug 27 '10 at 0:15
  • i am on centos 5.4 – Wei Aug 27 '10 at 0:15
  • 4
    yum install telnet or if your path is incorrect just run /usr/bin/telnet – Keiran Holloway Aug 27 '10 at 22:06

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.