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 06-27-2005, 10:21 AM   #1
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Rep: Reputation: 15
Telnet


I've just installed telnet (netkit-telnetd) client and server software on my linux system. i can telnet from this system. But how do i telnet to the system.
say if my linux's system's address is 192.168.0.3, I have tried telneting 192.168.0.3 from a remote machine, but it tells me:

Connecting To 192.168.0.3...Could not open connection to the host, on port 23: Connect failed.

Is there meant to be a way of starting the telnet server on my Linux system.

Thanks.
 
Old 06-27-2005, 10:33 AM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
edit /etc/(x)inetd.conf to allow telnet, and restart (x)inetd: /etc/init.d/(x)inetd restart

NOTE: replace (x)inetd with inetd or xinetd, depending on which one you use.
 
Old 06-27-2005, 10:53 AM   #3
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
I have an xinetd.d file in /etc/ directory but no xinetd.conf file. Thanks alot
 
Old 06-27-2005, 11:05 AM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
You probably have a xinet.d directory, not file. (That is what .d stands for)
Do you have a xinetd.conf file there? If not, what files do you have there?
What distribution do you use?
 
Old 06-27-2005, 11:11 AM   #5
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
Sorry about that i am a newbie to Linux. I have a i have looked in the etc/xinetd.d directory, there is only one file there and that is telnetd. I have gentoo.
Thanks again.
 
Old 06-27-2005, 11:28 AM   #6
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
i am a newbie to Linux. [...] I have gentoo.
An unusual combination...

What does the telnetd file contain?

P.S.: Maybe you should consider installing OpenSSH, since telnet sends everything (including passwords) unencrypted.
 
Old 06-27-2005, 01:11 PM   #7
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
the telnetd file says:...

service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = yes
}

If you could help, i would be very happy..
thanks.
 
Old 06-27-2005, 01:21 PM   #8
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
remove the line that says 'disable = yes' and restart xinetd.
To restart it, either run:
/etc/rc.d/xinetd restart
or
/etc/init.d/xinetd restart
(I'm not sure which one works with Gentoo)

if both fail, try 'find /etc -name xinetd' to locate the startup script.
 
Old 06-27-2005, 01:58 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I would also agree that using SSH is always preferrable to telnet... unless you want to share your passwords.

Anyway, gentoo does use /etc/init.d/xinetd for xinetd startup.
 
Old 06-28-2005, 12:41 AM   #10
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
many things can forbid ur telnet session. defenitely the lline "disable = yes" in /etc/xinet.d/telnet is preventing ur session. change it to "no" and execute the command "service xinetd restart". then telnet to the telnet server.
thanks . if this did help u please click on the thanks button.
 
Old 06-28-2005, 07:24 AM   #11
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
when i try that, It says service command not found
 
Old 06-28-2005, 08:46 AM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
service xinetd restart is redhat/fedora specific.
/etc/init.d/xinetd restart is the gentoo equivalent.
 
Old 06-28-2005, 10:37 AM   #13
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
I've tried that one also (/etc/init.d/xinetd restart). I tells me no such file or directroy.
If i look at the directory /etc/init.d/ there is no file called xinetd or anything remotely looking like that. Thanks for everyone's input, but i'm begining to think there is no hope.
 
Old 06-28-2005, 11:02 AM   #14
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
ive tried find /etc/ -name xinetd, and it comes up with nothing.

Ive also tried find -name xinetd and it comes up with:
./usr/portage/sys-apps/xinetd
 
Old 06-28-2005, 11:18 AM   #15
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Umm, that does bring a good question: do you have xinetd installed?
 
  


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
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 - Networking

All times are GMT -5. The time now is 01:52 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