Operating System - Linux
1819794 Members
3231 Online
109607 Solutions
New Discussion юеВ

Impossible to telnet port 5555

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

Impossible to telnet port 5555

Hello,

I'm trying to connect to suse linux 9 enterprise server to port 5555 throught telnet, but I can't.

I already opened 5555 tcp port.
I added remote host to .rhosts file.
I granted telnet to remote host.

Do I miss something?

Thanks in advance for your help.
Regards,

Carles
14 REPLIES 14
Ivan Ferreira
Honored Contributor
Solution

Re: Impossible to telnet port 5555

What is the service that is running in the port 5555, is it data protector?

If you run

netstat -an |grep 5555

Do you see the port in the LISTEN state?

Try stopping the firewall if any:

service iptables stop
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jerome Henry
Honored Contributor

Re: Impossible to telnet port 5555

Hi Carles,

Just a quick thought :
telnet is enabled, right ? (in /etc/xinetd.d/telnet, you don't have disable to yes)
You firewall is not blocking, right ?

J
You can lean only on what resists you...
Carles Viaplana
Valued Contributor

Re: Impossible to telnet port 5555

Sorry for delay in my replay.

Yes, this is for data protector.

I executed command as you show and here you're output:

liubliana:/etc/xinetd.d # netstat -an |grep 5555
tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN
unix 3 [ ] STREAM CONNECTED 15555
liubliana:/etc/xinetd.d #

About firewalls, they're not active.

BTW, telnet is active, but it doesn't allow to me login (default port or 5555 port), so I think problem is due my telnet configuration.

Do you have any idea?

Thanks in advance for your help!
Regards,

Carles
Alexander Chuzhoy
Honored Contributor

Re: Impossible to telnet port 5555

On RedHat system if you want to configure the telnet server to listen on port 5555.
Then simply edit the file /etc/services. Locate the lines with telnet and change the port from what it is to 5555.
Then restart the telnet service and it works...
Have you done all equivalent steps on your machine?
Carles Viaplana
Valued Contributor

Re: Impossible to telnet port 5555

Hello,

I added the following entry in /etc/services file:

omni 5555/tcp # DATA-PROTECTOR

Regards,

Carles
Rob Leadbeater
Honored Contributor

Re: Impossible to telnet port 5555

Hi,

Can you confirm exactly what you're trying to achieve... and what you get when attempting to telnet to port 5555.

If you're simply testing that Data Protector is working (listening on port 5555) then you'll get a connection, but nothing more -you won't get a login prompt.

For example:

# telnet server01 5555
Trying 192.168.0.1...
Connected to server01.domain.com (192.168.0.1).
Escape character is '^]'.
^]

telnet> quit
Connection closed.


If you try to connect to a port which is not listening then you'll get a refused:

# telnet server01 5554
Trying 192.168.0.1...
telnet: Unable to connect to remote host: Connection refused

Cheers,

Rob
Carles Viaplana
Valued Contributor

Re: Impossible to telnet port 5555

Hello,

When I tried to telnet suse system with data protector working fine I get the following message:

# telnet riad 5555
Trying...
Connected to riad.santpau.es.
Escape character is '^]'.
HP OpenView Storage Data Protector A.05.50: INET, internal build 330, built on Tue Oct 12 23:06:00 2004
Connection closed by foreign host.
# telnet riad
Trying...
telnet: Unable to connect to remote host: Connection refused
#

But when I telnet new suse system I get the following message:

# telnet liubliana 5555
Trying...
Connected to liubliana.santpau.es.
Escape character is '^]'.
Connection closed by foreign host.
# telnet liubliana
Trying...
Connected to liubliana.santpau.es.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON
Welcome to SUSE LINUX Enterprise Server 9 (x86_64) - Kernel 2.6.5-7.244-smp (1).

liubliana login: root
Password:
Login incorrect


telnet> quit
Connection closed.
#

So I think problem is on my services/telnet configuration instead data protector installation as inet service is running.

Thanks in advance for your help.
Regards,

Carles
Jerome Henry
Honored Contributor

Re: Impossible to telnet port 5555

Ok
What do you logs tell you on riad ?
You can lean only on what resists you...
Ivan Ferreira
Honored Contributor

Re: Impossible to telnet port 5555

First of all, you can telnet to the 5555 port, but this service is not used for login. You telnet to the 5555 port only to ensure that is listening, do not expect a login prompt.

Second, you can telnet to the host to the normal 23 port, but you cannot login with root by default. If you try with another user you will login sucessfully.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Carles Viaplana
Valued Contributor

Re: Impossible to telnet port 5555

Hello,

This is the message in syslog when I try to telnet liubliana (new system with DP not working properly):

Jan 12 10:58:06 liubliana xinetd[22431]: execv( /usr/omni/bin/inet ) failed: Exec format error (errno = 8)

When I try to telnet riad (DP working properly), there isn't any message in any syslog file (warn, messages,...).

I hope it helps.
Regards,

Carles


Matti_Kurkela
Honored Contributor

Re: Impossible to telnet port 5555


This log message is a critical clue.

Jan 12 10:58:06 liubliana xinetd[22431]: execv( /usr/omni/bin/inet ) failed: Exec format error (errno = 8)

This means xinetd is trying to run /usr/omni/bin/inet but fails. "Exec format error" means the binary might be for the wrong architecture (maybe you've installed a package intended for 64-bit Itanium or Opteron architecture rather than 32-bit ix86, or some similar mistake).

Use "file /usr/omni/bin/inet" to check the type of the executable. Compare the result to a binary that is known to work, e.g. "file /bin/ls".

If the architecture is correct, check that all the libraries required by the /usr/omni/bin/inet binary are available:
use the command "ldd /usr/omni/bin/inet". If the command lists any library as "not found", you've found a problem. Check your distribution's software package catalog to find the necessary library packages, and install them.

Since xinetd is configured, the connection gets established and xinetd tries to start /usr/omni/bin/inet... but when xinetd finds it cannot start the binary that is supposed to handle the connection, it has no other options than to immediately close the connection.
MK
Huc_1
Honored Contributor

Re: Impossible to telnet port 5555

If Matti is right you should find trace of this is log files ... /var/log/messages ?

Jean-Pierre Huc
Smile I will feel the difference
Carles Viaplana
Valued Contributor

Re: Impossible to telnet port 5555

Hello,

I executed file and ldd commands with next outputs:

liubliana:~ # file /usr/omni/bin/inet
/usr/omni/bin/inet: setuid ELF 64-bit LSB executable, IA-64 (Intel 64 bit architecture), version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
liubliana:~ # file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped
liubliana:~ # ldd /usr/omni/bin/inet
not a dynamic executable
liubliana:~ #

As I told in previous posts, we're installing data protector 5.50 into this linux system. After your post it could be we're installing software from a wrong CD. Problem is this is the only CD for UNIX we've found and I already opened a thread in OpenView forum and for Suse Linux we have to use HP-UX CD, so I assume this is the right version.

About messages log file, line I posted before is the only message related with this issue.

Thanks in advance for your help.
Regards,

Carles
Matti_Kurkela
Honored Contributor

Re: Impossible to telnet port 5555

Based on the "file" command output you posted, the /usr/omni/bin/inet is for Itanium architecture.

Your server seems to be "x86-64" architecture which is also 64-bit, but incompatible with Itanium.
However, the x86-64 architecture is backwards compatible with the classic 32-bit x86 software: so you could install the 32-bit version of the Data Protector and it should work, provided that you have 32-bit versions of all the necessary libraries installed.

With a backup application, the difference between "native" 64-bit application and "legacy" 32-bit one might not be very significant. Just be aware of possible file size limitations (check if there are any) when using the 32-bit version.
MK