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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-22-2005, 08:52 AM
|
#1
|
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:
|
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.
|
|
|
02-22-2005, 09:26 AM
|
#2
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
Any reason you would rather use telnet over ssh? Ssh is much more secure and the preferred remote login method for linux.
|
|
|
02-22-2005, 09:29 AM
|
#3
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
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...
|
|
|
02-22-2005, 10:26 AM
|
#4
|
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:
|
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.
|
|
|
02-22-2005, 10:48 AM
|
#5
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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.
|
|
|
02-22-2005, 11:01 AM
|
#6
|
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:
|
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 11:53 AM.
|
|
|
02-22-2005, 01:12 PM
|
#7
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
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.
|
|
|
02-22-2005, 02:15 PM
|
#8
|
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:
|
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.
|
|
|
02-22-2005, 04:04 PM
|
#9
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
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.....
|
|
|
02-22-2005, 07:37 PM
|
#10
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|