LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2015, 03:41 AM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
Problem to telnet Red hat server


Hi,
I've already create inbound/outbound rule on port 8000, to the client machine (which is Windows 8.1), but I have got these

C:\Users\Peter>telnet hpi5.huamin.com 8000
Connecting To hpi5.huamin.com...Could not open connection to the host, on port 8000: Connect failed

C:\Users\Peter>ping hpi5.huamin.com

Pinging hpi5.huamin.com [113.255.249.122] with 32 bytes of data:
Reply from 113.255.249.122: bytes=32 time<1ms TTL=64
Reply from 113.255.249.122: bytes=32 time<1ms TTL=64
Reply from 113.255.249.122: bytes=32 time<1ms TTL=64
Reply from 113.255.249.122: bytes=32 time=5ms TTL=64

Ping statistics for 113.255.249.122:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 5ms, Average = 1ms

when I'm to telnet the Red hat server. How to resolve this?
 
Old 11-17-2015, 04:10 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
what is listening on port 8000?
 
Old 11-17-2015, 08:18 AM   #3
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
As I cannot run the Oracle Form from Server machine, on client machine, while Oracle form does work through Port 8000. This is why I try the way to telnet through port 8000.
 
Old 11-17-2015, 08:23 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Show us:
Code:
iptables -S
ss -lntp | grep 8000
on the server. Also, what OS the server is running.
This will give us the firewall configuration and show us if any process is listening on port 8000 on the server.

If the ss command doesn't exist, use netstat (same parameters).
 
Old 11-17-2015, 08:46 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
If the ss command doesn't exist, use netstat (same parameters).
Code:
lsof -i :8000
will show
 
Old 11-17-2015, 01:15 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
redhat should have the very old telnet disabled ( turned off) by default

did you re-enable it ?

telnet is a major security nightmare , use EXTREME CAUTION
 
Old 11-17-2015, 01:26 PM   #7
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 55
Don't forget that you pay for Red Hat support...
 
Old 11-17-2015, 06:10 PM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
What version of RHEL is this?

Code:
  
cat /etc/redhat-release
Depending on the version of RHEL, Telnet may not come installed by default.

Code:
rpm -qa | grep -i telnet
or

Code:
yum info telnet
If Telnet is installed, check if it is running:

Code:
ps -ef | grep -i telnetd
As others have said Telnet is insecure, however its good to check and see if ports are open and/or a session can be established with a remote machine.
 
Old 11-17-2015, 07:25 PM   #9
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Many thanks all.
I have done these

[oracle@hpi5 ~]$ yum info telnet
Loaded plugins: rhnplugin, security
*Note* Unbreakable Linux Network repositories are not listed below. You must run this command as root to access ULN repositories.
adobe-linux-i386 2/2
el5_latest 12794/12794
el5_unsupported 1173/1173
ol5_u7_base 3782/3782
Installed Packages
Name : telnet
Arch : i386
Epoch : 1
Version : 0.17
Release : 41.el5
Size : 96 k
Repo : installed
Summary : The client program for the telnet remote login protocol.
License : BSD
Description: Telnet is a popular protocol for logging into remote systems over the
: Internet. The telnet package provides a command line telnet client.

[oracle@hpi5 ~]$ ps -ef | grep -i telnetd
oracle 3718 3490 0 09:16 pts/2 00:00:00 grep -i telnetd
[oracle@hpi5 ~]$ cd /sbin
[oracle@hpi5 sbin]$ ./ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:61:4D:E0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:402 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45620 (44.5 KiB) TX bytes:1710 (1.6 KiB)

eth1 Link encap:Ethernet HWaddr 08:00:27:77:0F:E4
inet addr:113.255.242.82 Bcast:113.255.255.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4520 errors:0 dropped:0 overruns:0 frame:0
TX packets:1828 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3006195 (2.8 MiB) TX bytes:260813 (254.7 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6922 errors:0 dropped:0 overruns:0 frame:0
TX packets:6922 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8712960 (8.3 MiB) TX bytes:8712960 (8.3 MiB)

virbr0 Link encap:Ethernet HWaddr 967:1C:46:4D:A4
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:3485 (3.4 KiB)

but I still cannot telnet the server on client machine.
 
Old 11-17-2015, 07:45 PM   #10
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
You need to use code tags to make what you post more readable.

From what you posted below, Telnet daemon is NOT running.


Quote:
Originally Posted by Huamin View Post

[oracle@hpi5 ~]$ ps -ef | grep -i telnetd
oracle 3718 3490 0 09:16 pts/2 00:00:00 grep -i telnetd
 
Old 11-17-2015, 08:48 PM   #11
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
How to enable it?
 
Old 11-17-2015, 11:24 PM   #12
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Huamin View Post
How to enable it?
You don't need telnetd, since you want to access port 8000. You shouldn't run it anyway. The telnet client is useful for quick checks, the telnet server is useless.

What you need to do is check if port 8000 is open and if somebody listens on it. See replies 4 and 5.
 
Old 11-18-2015, 01:11 AM   #13
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks. Any advice to the following?

[oracle@hpi5 sbin]$ iptables -S
bash: iptables: command not found
[oracle@hpi5 sbin]$ ss -lntp | grep 8000
bash: ss: command not found
[oracle@hpi5 sbin]$
[oracle@hpi5 sbin]$ lsof -i :8000
bash: lsof: command not found

according to the given advice on #4 and #5.
 
Old 11-18-2015, 01:55 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
netstat -a | grep 8000
 
Old 11-18-2015, 02:57 AM   #15
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
I've done such command on server fine. But I still get same problem to telnet server on port 8000 on client machine.

Last edited by Huamin; 11-18-2015 at 04:00 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet server not starting on Red Hat Enterprise 5.1 logsbyrn Linux - General 2 09-18-2008 03:31 AM
Telnet Server Install/Config on Red Hat 9 pldobs Linux - Software 12 10-27-2003 09:15 PM
Telnet on Red Hat 8.0 SAW Linux - Networking 3 06-24-2003 02:07 AM
Red Hat 8.0 Telnet The_Master Linux - General 3 12-09-2002 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration