- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- 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
Discussions
Discussions
Forums
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
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
тАО06-07-2006 10:00 PM
тАО06-07-2006 10:00 PM
I have one server, that when I do telnet, it shows me this message:
# telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I have this configuration:
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.30.1.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.30.1.129 0.0.0.0 UG 0 0 0 eth0
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:95:75:4E
inet addr:10.30.1.178 Bcast:10.30.1.255 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23587191 errors:0 dropped:0 overruns:0 frame:0
TX packets:26078566 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1787962940 (1705.1 Mb) TX bytes:913539197 (871.2 Mb)
Interrupt:9 Base address:0x1080
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:260902 errors:0 dropped:0 overruns:0 frame:0
TX packets:260902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:65076725 (62.0 Mb) TX bytes:65076725 (62.0 Mb)
What can I do?
Thanks a lot of!
Carmen.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 10:16 PM
тАО06-07-2006 10:16 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 10:21 PM
тАО06-07-2006 10:21 PM
Re: telnet: Unable to connect to remote host: Connection refused
Look for the file in /etc/xinetd.d/telnet and edit the line with 'disable' on to say 'no' instead of 'yes', then restart xinetd with the command 'service xinetd restart'. Off the top of my head you may also need to add some entries into /etc/securetty for pts/0, pts/1 etc.
Telnet is usually enabled on port 23 - any reason why you are using 25? That's the smtp port.
I'll let others comment on the security issues involved with telnet...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 10:43 PM
тАО06-07-2006 10:43 PM
Re: telnet: Unable to connect to remote host: Connection refused
I have disable telnet
#telnet 127.0.0.1 25
I need to connect to port 25, because one application needs its (don't ask me why!!), and its the same message:
# telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 10:51 PM
тАО06-07-2006 10:51 PM
Re: telnet: Unable to connect to remote host: Connection refused
# telnet 10.30.1.178 25
Trying 10.30.1.178...
telnet: Unable to connect to remote host: Connection refused
Its the same. How can I activate port 25?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 12:17 AM
тАО06-08-2006 12:17 AM
Re: telnet: Unable to connect to remote host: Connection refused
Here, telnet is used only on the client side to connect to a remote port.
You should also use netcat or nmap to check if the port is open.
So concerning the port 25, it's the standard port for SMTP. An MTA (Mail transfert Agent) should be binded here.
So if people ask you for the port 25 to be binded, I supposed they want to use an MTA !
Choose your favorite MTA an instal it (postfix, sendmail, qmail....)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 12:19 AM
тАО06-08-2006 12:19 AM
Re: telnet: Unable to connect to remote host: Connection refused
To check the runing services on this host, use "netstat -ltpn"
That would give you all the open port and also the software binding it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 02:34 AM
тАО06-08-2006 02:34 AM
Re: telnet: Unable to connect to remote host: Connection refused
Try to start your sendmail or postfix daemon to listen in port '25'.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 06:08 PM
тАО06-08-2006 06:08 PM
Re: telnet: Unable to connect to remote host: Connection refused
Make sure your application is running and its service binds with the loopback interface.
-logu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 11:43 PM
тАО06-08-2006 11:43 PM
Re: telnet: Unable to connect to remote host: Connection refused
1) check if sendmail installed :
rpm -qa|grep sendmail
2) activate & start sendmail
chkconfig sendmail on
servicew sendmail start
Of course you can use postfix or other MTA instead of sendmail.