LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2005, 09:52 AM   #1
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Telnet - HOWTO


Hi,

I am using Fedora Core 1.

I am a real newbie at telnet. Though i've tried to read a lot about it

i can't ever get it working.

I guess telnet is a terminal emulation program that is used for remote login

But it never seems to work.

When i type telnet <i.p. of host> 23 or simply,

telnet <i.p. of host>

It either says :

Trying 10.10.27.220...
telnet: connect to address 10.10.27.220: Connection refused

or gets stuck up displaying

Trying 10.10.27.220...

I never asks for any passwd or username

I cannot even remote login into my own sysytem

While ssh works fine

I guess for telnet to work the telnet daemon or server must be running on the host

I know i have installed the telnet server but i don't know where to find it and start it

How can i thus remote login into my own system or say any other system of whom

i know the passwd and how to activate the telnet service on the machine

I am a real newbie at using telnet though i have read a quite about it

Thanks.
 
Old 02-22-2005, 10:26 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Any reason you would rather use telnet over ssh? Ssh is much more secure and the preferred remote login method for linux.
 
Old 02-22-2005, 10:29 AM   #3
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
Is telnet running on the system that you're trying to connect to? Try running a port scan to see if the port 23 is open.

Your program call syntax seems to be in tact.

The question of telnet of ssh is an interesting one though...
 
Old 02-22-2005, 11:26 AM   #4
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
I don't know which one is better. I just want to learn telnet

No, there is no specific reason that i want to use telnet over ssh

I just want to learn how to use it

Also i don't know how to do a portscan

Please help.

Thanx.
 
Old 02-22-2005, 11:48 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
If you don't know about telnet, don't use it. Telnet is the predecessor to SSH and is not enabled on most new systems for a good reason. EVERYTHING over telnet is sent "in the clear" (that is, unencrypted). SSH has all the functionality of telnet, and then some. If you really want to use telnet after all this, you'll need to install the telnet server package. I'm not sure which that is under Fedora, but I'm sure a quick search through an RPM site will find it.
 
Old 02-22-2005, 12:01 PM   #6
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Hi,

I already have the telnet server program installed on my Fedora Core 1

When i checked my system for installed packages it said that

the following package was installed :

telnet-server - The server program for the telnet remote login program

But i don't know how to use it or start the telnet services.

It is not there in the /etc/init.d directory

Also i don't know how to do a port scan

And i would like to learn telnet. I may not use it because ssh is better

but i just want it to work

Please help.

Thanx.

Last edited by koodoo; 02-22-2005 at 12:53 PM.
 
Old 02-22-2005, 02:12 PM   #7
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
To start the telnet server.

1. Go to the /etc/xinetd.d/ directory.
2. Edit the telnet file. set diable = no
3. Restart the xinetd service.
 
Old 02-22-2005, 03:15 PM   #8
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Hi,

Thanks a lot for your help

Now i can login via telnet into the machine

However i can only login as a normal user and it wouldn't allow me to

login as root

The telnet file of the machine read as :

# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}

Do i have to edit the file so as to be able to login as root?

Thanx again.
 
Old 02-22-2005, 05:04 PM   #9
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
Telnet!

There isn't much point learning this.

It's really out-moded now..... he says.... my two main business systems at work use telnet over a wan... lol anyway.

okay add pts/0, pts/1, pts/2, pts/3, ptt/4 to the end of the file called:

/etc/securetty

But this pretty dangerous.

you can log in and su in any event.....
 
Old 02-22-2005, 08:37 PM   #10
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
I agree w/ others, use ssh, not telnet. Your password,
especially, is in the open.

A bunch of SSH programs link at

http://www.websamba.com/Linux_Docs_Links
-> Softwares
-> Telnet Equivalents

Sheng-Chieh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 06:13 AM
Howto update KDE and howto switch off kdm/gdm Canaris Linux - Software 1 06-15-2003 09:40 PM
enable telnet but can't telnet from the computer guanyu Linux - Networking 8 08-26-2002 07:34 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 03:33 PM


All times are GMT -5. The time now is 08:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration