- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: telnetd
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
тАО11-12-2001 08:40 AM
тАО11-12-2001 08:40 AM
i have installed a linux Redhat 7.0 on my network and i'm trying to configure it. I'm having problems with telnetd. From linux i can telnet to other pc but i can't vice versa.
Some one told me that i have to download the telnet server because it isn't installed. I did that but i'm still not able to telnet to linux. What do i have to configure to let it work? Port is set in /etc/services
Thanks
Tarek
Solved! Go to Solution.
- Tags:
- telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 08:54 AM
тАО11-12-2001 08:54 AM
Re: telnetd
There are a few steps to follow in order to solve your problem.
1) First of all, try:
telnet localhost
and see if you can telnet to your own server. If you get a message saying "connection refused", you don't have telnet enabled. If that is the case, check your /etc/inetd.conf (or /etc/xinetd.d/telnet file if you're using xinetd) and enable telnet. Don't forget to do killall -1 inetd (or killall -1 xinetd if you're using xinetd).
2) If you don't see the "connection refused" message but nothing comes out on your screen, try to wait a little bit longer.
If you can see the telnetd message after a few minutes, you may have an incorrectly configured DNS/resolver. Temporarily move your /etc/resolv.conf file to /etc/resolv.conf.OLD. This will disable name server resolution. Try telnetting again to localhost and see if the problem still happens (PS: Don't forget to move /etc/resolv.conf.OLD back to /etc/resolv.conf after the test).
3) If you can telnet locally, try telnetting to your linux box remotely. If you see the "connection refused" message, you may have iptables, ipchains or a tcpwrapper blocking traffic. Do "iptables -F INPUT" and "ipchains -F input" as root and try again. If it still happens, check your /var/log/secure.log for relevant messages. Also, check the tcpd manpage if you see tcpd complaining about remote connections to the telnet port.
Note: Make sure you re-enable your iptables or ipchains after you finish the test!
4) When you telnet from another box, make sure you wait a LONG time before you give up. If after a long time you see the telnetd banner, again you may have a DNS problem (your host tries to "resolve" the remote connection but it cannot -- This procedure takes a while). In this case, follow the steps outlined in case (2) (renaming the /etc/resolv.conf file to something else) and try telnetting again.
Hope it helps,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 09:00 AM
тАО11-12-2001 09:00 AM
Re: telnetd
error:
Trying...
telnet: Unable to connect to remote host: Connection refused
The /etc/xinet.d/telnet is properly configured i think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 10:08 AM
тАО11-12-2001 10:08 AM
Re: telnetd
did you check /etc/inetd.sec ?
Do not know if this applies to 7.x
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 12:34 PM
тАО11-12-2001 12:34 PM
Re: telnetd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 04:29 PM
тАО11-12-2001 04:29 PM
Re: telnetd
If it gives you a 'connection refused' right away I'd say you have a ipchains/iptables based solution blocking the outside world. If it takes a little while, you may have a tcpwrapper (tcpd) blocking your incoming telnetd connections.
Some steps:
1) Check /var/log/secure* and look for any clues (tcpd logs there)
2) Did you try (as root) ipchains -F input and iptables -F INPUT ?
Regards,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2001 12:38 AM
тАО11-13-2001 12:38 AM
Re: telnetd
first of all thanks for the help your providing me.
I checked /var/log/secure, i have an authentication error:
login: FAILED LOGIN 1 From wsname FOR root, authentication failure.
output of iptables -F INPUT:
iptables v1.1.1 can't initialize iptables table 'filter': iptables who? (do you need to insmod?) Perhaps iptables on your kernel needs to be upgraded.
ipchains -F input no output.
Any further tip? Is there any file that allows telnet access as the /etc/ftpusers does for ftp remote access?
Thanks again.
Tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2001 02:06 AM
тАО11-13-2001 02:06 AM
SolutionFirst try telnetting as a normal user...root is not allowed to telnet into the machine directly (security risk). If you need to have this ability, just mv /etc/securetty to something else (although I wouldn't recommend it).
Also, when you're telnetting into the machine are you getting the login prompt? If not, then the message from /var/log/secure is not related to the problem since you're not entering any login informtion.
Make sure that telnetd is listening:
netstat -na |grep LISTEN|grep 23
should return something like:
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
If not, then telnet is not running. Run the following command:
chkconfig --list|grep telnet
If it comes back with:
telnet: off
then run:
chkconfig telnet on
and try telnetting again.
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2001 06:49 AM
тАО11-26-2001 06:49 AM
Re: telnetd
"disable = yes"
make it to
"disable = no"
And thatz it.
bye
Sunil