Telnet issue

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Telnet issue
# 1  
Old 09-18-2014
Telnet issue

Hi All!

for lab purposes i need to run telnet server on my RedHat 7 machine.
i installed the package: telnet-server using yum.
i read that i need to edit the telnet file under /etc/xinetd.d
the problem is that there is no telnet file in that folder.
the telnet server install completed successfully what am i missing here?

thanks.
guy
# 2  
Old 09-18-2014
Are you sure you installed the "telnet-server" package and not the "telnet" application only?

Did the installation process also install "xinetd" as dependency?

What's the output of rpm -q xinetd telnet-server?

Here is what I have:
Code:
# rpm -q xinetd telnet-server
xinetd-2.3.14-39.el6_4.i686
telnet-server-0.17-47.el6_3.1.i686
#
# rpm -qc telnet-server
/etc/xinetd.d/telnet
#

Here is also the original telnet configuration file, which needs to be changed in order to get telnet-server up and running:
Code:
# default: on
# description: The telnet server serves telnet sessions; it uses \
#    unencrypted username/password pairs for authentication.
service telnet
{
    flags        = REUSE
    socket_type    = stream        
    wait        = no
    user        = root
    server        = /usr/sbin/in.telnetd
    log_on_failure    += USERID
    disable        = yes
}

When you change disable = yes to disable = no, then you just need to start or restart the xinetd service:
Code:
# service xinetd restart

---------- Post updated at 07:45 PM ---------- Previous update was at 07:38 PM ----------

An appropriate iptables rule in /etc/sysconfig/iptables might also be required:
Code:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT

Plus restart of the iptables service:
Code:
# service iptables restart

# 3  
Old 09-22-2014
i have the 2 components

but i don't have the telnet file.
see attached print screen
Telnet issue-telnetpng
# 4  
Old 09-22-2014
OK. Please run rpm -ql telnet-server and see if a file called /usr/sbin/in.telnetd appears in the output?

If yes, you should try to create /etc/xinetd.d/telnet manually. Make sure this file has same permissions as the other files in the /etc/xinetd.d directory. Also make sure you enable the telnet server in the manually created configuration file and restart xinetd service.
# 5  
Old 09-28-2014
HI

i ran the command: "rpm -ql telnet-server" and there was a file /usr/sbin/in.telnetd in the output. i created the "telnet" file manually and configured disable=no still telnet not working... im going crazy
# 6  
Old 09-29-2014
Did you restart the xinetd service afterwards? Did the restart work without complaints? You say "still telnet not working": How did you test? From another machine? Here is another idea, after you make sure xinetd gets restarted: Run netstat -ant | grep 23 to see if telnet daemon is listening on port 23, it might be that telnetd is listening, but the firewall is blocking remote access. If you think the firewall might be a problem, then test with telnet localhost first before changing fw rules.
# 7  
Old 09-30-2014
Quote:
Originally Posted by guy3145
HI

i ran the command: "rpm -ql telnet-server" and there was a file /usr/sbin/in.telnetd in the output. i created the "telnet" file manually and configured disable=no still telnet not working... im going crazy
It is tempting to just create the file manually, however, I would say that it is worthwhile to find out first why it was not there, since rpm package are very precise.
I would check the content of the files that were supposed to be installed from the repository:

Code:
# repoquery --list telnet-server
/etc/xinetd.d/telnet
/usr/sbin/in.telnetd
/usr/share/man/man5/issue.net.5.gz
/usr/share/man/man8/in.telnetd.8.gz
/usr/share/man/man8/telnetd.8.gz

and then I would check with what got installed:

Code:
rpm -ql telnet-server
/etc/xinetd.d/telnet
/usr/sbin/in.telnetd
/usr/share/man/man5/issue.net.5.gz
/usr/share/man/man8/in.telnetd.8.gz
/usr/share/man/man8/telnetd.8.gz

Both must match, or something unusual happened during the installation.
That would give me a base to start working out what's going on.

It is just a thought.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Telnet issue

In the below script, i want to check telnet port status of list of servers, here where ever port working i am getting output. where ever port is not working (where ever trying) there it's command stuck, there it's needed manual interruption like ctrl+c. without interception i want run this... (1 Reply)
Discussion started by: rajiv
1 Replies

2. Linux

Infuriating Telnet Issue

Hi, Recently I've been working a lot with telnet for various reasons (obsolete, I realise). However, I've run into an issue. With most telnet clients, login is possible. However, with a few, typing is possible until I try to hit enter. For example, I try to type "admin" as the username and... (5 Replies)
Discussion started by: FreddoT
5 Replies

3. Solaris

Telnet issue

Hi Gurus, I have solaris 10 server where I can telnet to one host and port <20011> with no problem..but when I am trying to telnet to another host same port (port is listening) I am not getting any success...it just says trying.... Now that I have both hosts listed in the /etc/hosts file,... (4 Replies)
Discussion started by: mohullah
4 Replies

4. UNIX for Dummies Questions & Answers

Goofy telnet issue

Greetings! My name is Jerry. I am a long time IBM i-series (AS/400) admin. I am the solo IT guy at a $50M company, we run mostly Windows servers on virtual machines, I do have one i-series, and one p-series. Recently, we have decided to go with a legacy product that is proven and bulletproof, it... (0 Replies)
Discussion started by: jeveretts
0 Replies

5. Shell Programming and Scripting

perl telnet issue with cisco

Hi Experts, I am using perl to telnet on cisco boxes. We have this stupid cisco node which does not support "terminal Length0" command. Since I am using Net::Telnet and capturing output with @output = $telnet->cmd('cmd'); Say @output = $telnet->cmd('show version'); Now problem... (2 Replies)
Discussion started by: mtomar
2 Replies

6. Solaris

issue regarding telnet on solaris(9 version)

hi this is hrushi i have issue regarding solaris(9 version) when i telnet from solaris to linux machine it displaying message like connection closed by forine host ...when i telnet from linux to solaris its working fine ...help me its urgent and i'm new to solaris 9 (2 Replies)
Discussion started by: ghrushi84
2 Replies

7. Shell Programming and Scripting

urgent help needed in telnet issue

Hi, Whenever i am trying to telnet to server i am getting frequent error Authorized Login: prtsrc's Password: /dev/pts/171: Password read timed out -- possible noise on port when i am rerunning the same it is working fine thanks, sam (2 Replies)
Discussion started by: sam99
2 Replies

8. Shell Programming and Scripting

Reg : telnet password issue

Hi All, I am working on AIX 5.3. My requirement is to telnet to a server and scp a file from another server In my shell script i am using telnet to enter to a server and i am echoing the password as below echo open $Infahost sleep 1 echo $Infaftplogin sleep 1 echo $Infaftppasswd... (3 Replies)
Discussion started by: sam99
3 Replies

9. Shell Programming and Scripting

telnet issue

Hi , i am a beginner in AIX. please find my doubt I am calling the below script named test_1 by " sh test_1 | telnet " cmd1="var1=100" echo open $Infahost sleep 1 echo $Infaftplogin sleep 1 echo $Infaftppasswd sleep 1 echo $cmd1 sleep 5 echo $var1 sleep 5 echo exit (11 Replies)
Discussion started by: sam99
11 Replies

10. Solaris

Telnet issue E5500/V480

Our old E5500 was just turned off (planned :rolleyes: ) and the application was moved to a V480. Now if I login to the V480 and try to sudo to root my connection hangs, and I can not telnet to the E5500 after it was powered on again. I get "connection refused". Telnet to this machine was... (5 Replies)
Discussion started by: kjbaumann
5 Replies
Login or Register to Ask a Question