Operating System - HP-UX
1820140 Members
3325 Online
109620 Solutions
New Discussion юеВ

Re: telnet connection refused error

 
SOLVED
Go to solution
Shivkumar
Super Advisor

telnet connection refused error

Dear Sirs,

We are not able to connect to server using telnet, ssh and ftp. Getting connection refused errors.

What could be the issue ?
Appreciate any help.

Thanks,
Shiv
17 REPLIES 17
James R. Ferguson
Acclaimed Contributor
Solution

Re: telnet connection refused error

Hi Shiv:

At the console, try restarting 'inetd':

# inetd -c

Regards!

...JRF...
HGN
Honored Contributor

Re: telnet connection refused error

Hi

For telnet to work you need to check and make sure that in inetd.conf file telnet is not commented out, also check if inetd is running,you need to re-read the inetd.conf to make the changes effective.
For ssh not working have to check if the ssh daemon is running and the settings are correct in sshd_config file.

Rgds

HGN
rmueller58
Valued Contributor

Re: telnet connection refused error

Shiv,

go to the Console, check what your init status is.. should be init 3.

if the system has been running and active with these before sounds maybe something has ran amuk..

do a BDF make sure all volumes are mounted.

go into GSP and check the error logs

more /var/adm/syslog/syslog.log

You should see in the sys log if SSH is started..
Ivan Ferreira
Honored Contributor

Re: telnet connection refused error

Verify the status of the interfaces with ifconfig and netstat -ni. Check that you are receiving packages.

From the server can you ping other hosts?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Shivkumar
Super Advisor

Re: telnet connection refused error

Is there a way to login remotely without telnet ?

I mean we have root access to the box. Can we login and restart the inetd ?
Is GSM used for this ?

warm regards,
Shiv
Joseph Loo
Honored Contributor

Re: telnet connection refused error

hi,

if u r not getting any form of connections, i.e. telnet, ssh, ftp, http, https, etc, i do not suppose u will be able to login remotely.

thus, u have to proceed to the console and verify what exactly is happening to your server, network cards, connections, inetd not started, etc.

regards.
what you do not see does not mean you should not believe
Shivkumar
Super Advisor

Re: telnet connection refused error

Server is running applications fine. Only we can't connect through telnet, ssh and ftp.

What are the ways to access it now ?

warm regards,
Shiv
Bill Hassell
Honored Contributor

Re: telnet connection refused error

Standard HP-UX comes with telnet and ftp enabled, someone has disabled these functions. Let's start with the basics: Can a computer that is located on the same network (subnet) ping and telnet to the problem box? If so, your problem is with routers that have disabled communication to this box.

If local computers cannot connect to this box with telnet, it is possible someone has excluded a range of computers in /var/adm/inetd.sec so look at this file for deny statements.


Bill Hassell, sysadmin
Indira Aramandla
Honored Contributor

Re: telnet connection refused error

Hi Shivkumar,


Can you ping that server. Could it be a DNS names resolution. Did you try using the IP address.


IA

Never give up, Keep Trying
Shivkumar
Super Advisor

Re: telnet connection refused error

Only ping is working fine and applications running okay.
RAC_1
Honored Contributor

Re: telnet connection refused error

Unless you log onto server, it is difficult to troubleshoot. Can you log onto GSP and from console??

If nothing is working, booting system into single user mode and troublshoot from there.
There is no substitute to HARDWORK
Yogeeraj_1
Honored Contributor

Re: telnet connection refused error

hi,

can you try to put the IP address of the host in the /etc/hosts file?

What does the "last |head " command show after a failed loggon attempt?

can you try to telnet the server from the console itself?

e.g. telnet 192.168.1.12

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Shivkumar
Super Advisor

Re: telnet connection refused error

How GSP works ? I mean how to login to GSP ?
Sorry i am new to unix world :-((

Thanks,
Shiv
Bill Hassell
Honored Contributor

Re: telnet connection refused error

The GSP is a special connection to the processor. You access it by going to the console (the real console) mand typing CTRL-B which will bring up the CM prompt. However, this will provide no help at all with your networking. The GSP only knows about the hardware and knows nothing about HP-UX or the telnet and ftp services.

When you say that the system is running as a production server, what does it do? Does anyone login to this server, or is it a specialized web or database server with no user logins?


Bill Hassell, sysadmin
Shivkumar
Super Advisor

Re: telnet connection refused error

Bill,

Thanks for explaining me. I guess console login is allowed connecting to a switch via ip: port. Probably console login is used to reboot the server and to view the error messages on the screen (console). In production environment i think serial ports of the servers might be connected to switch ports and we connect to it for console login. I was thinking that this is an alternative way to remotely connect to hpux box without telnet.

Appreciate if i am corrected.

Regards,
Shiv
Bharat Katkar
Honored Contributor

Re: telnet connection refused error

Hi Shiv,
You are absolutely correct. Also in addition to this there is one more way to connect to the console.

Two Approaches are as:

1. Get a Dig Box (Swicth..) and connect one of it's port to the CONSOLE port of the server. Then you can telnet to the (dig box IP):(digi box port no.) and you get the console of that server.

2. Configure you LAN Console port and connect the lan directly to the Network Switch. Then you can directly telnet to the IP defined for lan Management Port. This will also give you the console.

Hope that helps,.
Regards,
You need to know a lot to actually know how little you know
Shivkumar
Super Advisor

Re: telnet connection refused error

Thanks everybody!!

The root cause was someone used the command "kill -3 1". It caused the system to become unstable.