LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-25-2002, 01:49 PM   #1
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Rep: Reputation: 15
Smile Telnet...


Wasup everyone,

how do i setup telnet on my server. I want to be able to telnet to it, from colllege, but it says connection refused.

Any help is much appreciated.
 
Old 01-25-2002, 02:27 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
If you've installed telnet server on your machine, the /etc/xinitd.d/telnet file has an entry disable=..., if it says yes change it to no, and you're done.
 
Old 01-25-2002, 08:16 PM   #3
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
well not completely done you can either restart your computer or run this at terminal
service xinetd restart
 
Old 01-26-2002, 01:14 PM   #4
tnordloh
LQ Newbie
 
Registered: Jan 2002
Location: Edmond, Oklahoma
Distribution: Linux Red Hat 7.0
Posts: 1

Rep: Reputation: 0
Also, if you are using redhat and installed a firewall, you may have to kill it. In the gnome menu click on footprint->programs->system->firewall-config. Keep in mind that as a default you can't log on as root, so make sure you're not trying that.
 
Old 01-26-2002, 01:56 PM   #5
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks, you lot.

I have just re-installed redhat, enabled it so that telnet was aloud through the firewall.

Will i be able to telnet to it now?
 
Old 01-26-2002, 03:18 PM   #6
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
Man there have been alot of telnet questions lately. People need to relize telnet is not secure by any means, and I would sujest they use ssh instead. Its more secure. Use telnet on computers that dont access the internet, and use ssh on computers that are connected to internet.
 
Old 01-26-2002, 03:27 PM   #7
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
Oh, yeah, I know that telnet is insecure...infact very insecure, But it is for me testing some stuff via my network, which is not connected to the internet.
 
Old 01-26-2002, 03:43 PM   #8
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
I dont mean to stress to everyone, but i cant seem to get telnet to connect to 127.0.0.1 , I'm not running as root, i have made sure that its enabled in /etc/xinetd/telnet .

i haven't got a firewall up, no worries, I'm not connected to the internet.

Anything, im doing wrong?
 
Old 01-26-2002, 03:49 PM   #9
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
You mean you are trying to connect from one computer to another with 127.0.0.1? Aint gonna happen. 127.0.0.1 is your local loopback, you cant use that as an ip address for a computer. Now if you are on the machine that is running the telnet server yes that should work, but if you are trying to connect from a different computer its not.

Every computer has a loopback device with a ip of 127.0.0.1 even windows machines.

Last edited by hanzerik; 01-26-2002 at 03:51 PM.
 
Old 01-26-2002, 04:01 PM   #10
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
ahh, nah, I didn't explain properly, i cant connect locally, so i cant connect through my network.

I know, what 127.0.0.1 is but i cant seem to connect to myself, never mind through the network.

Any suggestions?
 
Old 01-26-2002, 04:11 PM   #11
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
have you tried "telnet localhost.localdomain"?
localhost = hostname
localdomain = domain

You never know
 
Old 01-26-2002, 04:30 PM   #12
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
thanks for the help but Still, no luck.

I'll have a look around here, and if i still dont do it, I'll re-install linux. It must be something, I'm doing wrong, But what .

Last edited by KevStA; 01-26-2002 at 04:32 PM.
 
Old 01-26-2002, 08:09 PM   #13
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
you have to restart or run
service xinetd restart
after everytime you change the telnet config file
 
Old 01-26-2002, 09:23 PM   #14
linuxkids
LQ Newbie
 
Registered: Jan 2002
Posts: 17

Rep: Reputation: 0
Quote:
Originally posted by hanzerik
You mean you are trying to connect from one computer to another with 127.0.0.1? Aint gonna happen. 127.0.0.1 is your local loopback, you cant use that as an ip address for a computer. Now if you are on the machine that is running the telnet server yes that should work, but if you are trying to connect from a different computer its not.

Every computer has a loopback device with a ip of 127.0.0.1 even windows machines.
So how to setup to let different computer to login the telnet server thks
 
Old 01-26-2002, 09:29 PM   #15
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by linuxkids


So how to setup to let different computer to login the telnet server thks
have you read this thread, i think it basically points out how to setup telnet ?? are you wanting to setup your linux box to telnet into from another machine ?? personally if you are doing that and on the net, you might want to look into ssh, its better and more secure than just telnet.

Last edited by trickykid; 01-26-2002 at 09:31 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 12:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
Telnet localhost and telnet IP seb77 Linux - Newbie 4 10-15-2003 03:15 PM
enable telnet but can't telnet from the computer guanyu Linux - Networking 8 08-26-2002 06:34 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:14 AM.

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