- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- telnet: Unable to connect to remote host: Connecti...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:00 PM
02-23-2009 11:00 PM
telnet: Unable to connect to remote host: Connection refused
I have encounted a problem with telnet on the HP-UX11.11.
And the /etc/hosts file as following:
16.157.129.222 sshpa3.chn.hp.com sshpa3
127.0.0.1 localhost loopback
When I use the command:
1.root@sshpa3# telnet sshpa3
Trying...
telnet: Unable to connect to remote host:Connection refused
and when I use the command :
root@sshpa3# telnet localhost
or
root@sshpa3# telnet 127.0.0.1
can login to the system.
so what is the problem?Thanks!
What's more the command "ping sshpa3 " can work well.
And "nslookup sshpa3.chn.hp.com":
looking up FILES
Name: sshpa3.chn.hp.com
Address: 16.157.129.222
Aliases: sshpa3
It can resolve the realm name.
so what is the problem?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:27 PM
02-23-2009 11:27 PM
Re: telnet: Unable to connect to remote host: Connection refused
What is output of #telnet 16.157.129.222 ?
Are you able to telnet using ip address?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:32 PM
02-23-2009 11:32 PM
Re: telnet: Unable to connect to remote host: Connection refused
root@sshpa3# telnet 16.157.129.222
it can login to the system.
I think "telnet sshpa3 " and "telnet sshpa3.chn.hp.com" just the sshpa3 and sshpa3.chn.hp.com " can not resolve to the IP address 16.157.129.222.
But "nslookup sshpa3.chn.hp.com":
looking up FILES
Name: sshpa3.chn.hp.com
Address: 16.157.129.222
Aliases: sshpa3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:36 PM
02-23-2009 11:36 PM
Re: telnet: Unable to connect to remote host: Connection refused
Does the system have IPFilter installed?
If it has, the configuration is usually stored at /etc/opt/ipf.
Or maybe the system's network interface has been reconfigured without rebooting the system? In that case, running the command "inetd -c" might help.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:45 PM
02-23-2009 11:45 PM
Re: telnet: Unable to connect to remote host: Connection refused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:45 PM
02-23-2009 11:45 PM
Re: telnet: Unable to connect to remote host: Connection refused
But the ipf config file "ipf.conf and ipnat.conf" is empty.
and I do not modify inetd.conf file.
the telnet is listening on port 23.
tcp 0 0 *.23 *.* LISTEN
and in the inetd.conf file:
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:49 PM
02-23-2009 11:49 PM
Re: telnet: Unable to connect to remote host: Connection refused
Do you have /etc/hosts.allow and /etc/hosts.deny files in place ? If you have look into the files.
Just to make sure we have not blocked telnet services in inetd.sec, try connecting from remote machine using hostname and ip address.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2009 11:55 PM
02-23-2009 11:55 PM
Re: telnet: Unable to connect to remote host: Connection refused
In the folder /etc/, just have a hosts.equiv
file , but just have only one line :
sshpa4.chn.hp.com root
so I think there is nothing to do with the hosts.equiv file
And also there is no deny in the inetd.sec file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2009 12:38 AM
02-24-2009 12:38 AM
Re: telnet: Unable to connect to remote host: Connection refused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2009 12:53 AM
02-24-2009 12:53 AM
Re: telnet: Unable to connect to remote host: Connection refused
Could you share your findings so that it will be useful for others when they come across the same issue?
Ganesh.