LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2005, 08:14 AM   #1
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Rep: Reputation: 0
Angry Can't telnet into RH 8 box


I need help telneting into my RedHat 8 computer. I'm kind of new to Linux and can't figure out where to allow telnet from other computers. I am trying to use Hummingbird's Exceed program from my XP machine to telnet into the Linux machine and run programs. All of the information I have found has not helped me at all. I can see what ports are open but have no idea how to open additional ports.
Please help me.
 
Old 11-02-2005, 08:41 AM   #2
Mr. Swillis
Member
 
Registered: Sep 2005
Location: The PNW
Distribution: Many. Slackware is the main reason I'm here though :)
Posts: 95

Rep: Reputation: 17
Hi there,

Default telnet port is 23. If that is open and excepting incomming, then getting out of your XP Box should be easy. Drop the 3rd party terminal programs for now and simply using telnet from the Windows command line. This will rule out an issues with the app you are using.

Make sure you can ping the RH8 Box by hostname or IP (one or the other) and see if you can then telnet to it. You may also be blocked going outbound on the XP box. If you have any kind of firewall software on it, disable it. '

Information other users will want to know before helping you on this:

- can you ping the rh box?
- can you ping by hostname, ip address, or both?
- is port 23 open for incomming on the rh box?
- is it open for outgoing on the xp box?
- what device is in between these two boxes and is there any kind of firewall on it?

- can you telnet to the rh box from the rh box? (will test if it is even listening)
 
Old 11-02-2005, 08:50 AM   #3
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Original Poster
Rep: Reputation: 0
Hi Mr.s Swillis thanks for your quick reply.
1. I can ping the rh box
2. I can ping it from the ip address and the hostname
3. Port 23 is not open, what do I have to do to open it. I haven't been able to find an answer to that question either.
4. The XP box seems to be getting out with no probelm.
5. The two boxes are on the same network so they should have no problem communicating, when the RH box is loaded to windows everything works fine.

6. I tried telneting from rh to rh and it said trying ...... and just sort of hung there until it timed out.
 
Old 11-02-2005, 09:17 AM   #4
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Original Poster
Rep: Reputation: 0
Should I try using ssh instead? Would this be easier?
 
Old 11-02-2005, 09:55 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Is telnet server running?
Have you tried connecting on the server itself?

ssh would basically be the same as running telnet except it is secure.
 
Old 11-02-2005, 10:07 AM   #6
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Original Poster
Rep: Reputation: 0
I don't believe Telnet is running, it doesn't seem to find it. That is why I was asking about ssh.
Any other thoughts?
 
Old 11-02-2005, 11:03 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
If ssh is installed and configured to run as a service then you can start it via the console command:
service sshd start

I use PuTTy for windows to communicate with the ssh server.

telnet might be configured to run via xinted. Make sure it is enabled as described in the link. If xinetd is not running you can start it via the same service command. If it is already running then you will need to restart it. Must be root to start services.
http://www.chinalinuxpub.com/doc/www...-hn/xinetd.htm
 
Old 11-02-2005, 12:28 PM   #8
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the link that was very helpful.
I noticed when I went back to the Linux box that the Security settings are on high and that FTP, Telnet, etc. are all unchecked to be allowed into the machine.
When I change the setting from high to medium or try to enable incoming telnet it allows me to do so, but when I open up the security settings again it has defaulted back to High with nothing checked.
I am logged into the machine as root and it is not prompting me for a password or anything, what am I doing wrong?
I typed in netstat -a | grep telnet and nothing came back, I'm assuming because the service isn't running. When I check the services there is no telnet listed.
Xinetd is listed and running.
I'm definately still kinda lost.
 
Old 11-02-2005, 12:51 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
telnet runs via xinetd. You need to check the xinetd config file per the link to see if telnet is enabled.
 
Old 11-02-2005, 01:52 PM   #10
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Original Poster
Rep: Reputation: 0
There is nothing in that file that mentions telnet, it was set to disabled, so I enabled it but it didn't seem to make a difference.
 
Old 11-02-2005, 01:56 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
How did you enable it?
 
Old 11-02-2005, 02:57 PM   #12
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Original Poster
Rep: Reputation: 0
In the Xinetd.d directory I went into the services file and turned enabled to yes from no. That is the only place i could find where I would enable something. Was this the wrong place?
I do appreciate your help on this problem, thank you.
 
Old 11-02-2005, 04:29 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
That is the correct place. You need to restart xinted for the changes to take effect.
Once you restart xinetd try connecting to the server on the PC itself.
 
Old 11-02-2005, 08:46 PM   #14
Mr. Swillis
Member
 
Registered: Sep 2005
Location: The PNW
Distribution: Many. Slackware is the main reason I'm here though :)
Posts: 95

Rep: Reputation: 17
Sounds like you are on the right the right track. Try from the RH box to the RH box first, as this will rule out any network foo n the XP box for now. I know the default firewall settings on the mainstream distros from that time were notoriously picky. I had issues with Redhat, Mandrake and SUSE defaulting to crippling settings around that era of releases.

Also, I am quite curious about whether or not ssh works on that box. I know in Redhat you can do this as root: "service sshd restart" or something like that. You can do it with most services...may be ssh or sshd in the syntax. There may be something similar for telnet as well. Hold on...I have to check now...I support old RH Point of Sale boxes for a living, I should know this one.....

K, just verified it's "service sshd restart" (also stop or start instead of restart). Haven't found what the simple command is for telnet, but now that I think about it, I have only setup ssh on my personal boxes. Try it out and let us know. Most people will say that ssh is better anyways. It's not only more secure, but you can do cool stuff with it, like X forwarding, vnc forwarding and other cool hacky stuff.

Mr. Swillis
 
Old 11-03-2005, 09:40 AM   #15
Eric3
LQ Newbie
 
Registered: Sep 2005
Distribution: Redhat
Posts: 16

Original Poster
Rep: Reputation: 0
Alright thanks guys I got sshd to work with Putty, however it only worked once and now it won't let me connect through ssh. It gives me an error message: "Network error:Connection reset by peer" From what I have read this is sometimes an error of the router timing out or something like that. There are somethings on the Putty website that it suggested I do to make it not time out but it doesn't seem to let me connect. I have restarted the Linux box and that didn't seem to help. I am going to restart my XP box right now to see if that makes a difference in connecting.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet refused by my linux box murphaph Linux - Networking 10 04-02-2004 01:53 PM
How do i setup telnet on a slackware box digital bots Slackware 15 03-02-2004 01:32 PM
How can I telnet to a RedHat box? yuzuohong Linux - General 3 09-28-2002 11:17 AM
Can't Telnet into My Box cheshire Linux - Networking 7 03-20-2001 04:39 PM
telnet into a linux box todd499 Linux - Networking 13 11-24-2000 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration