LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-21-2010, 10:10 PM   #1
casperdaghost
Member
 
Registered: Aug 2009
Posts: 349

Rep: Reputation: 16
telnet error ---


i set up a MAC power pc with ubuntu.
i can ssh into it, but i cannot telnet.

this is what i get when i telnet to the host

i can only telnet to port 80

icasper@casper-laptop:~$ telnet 192.168.1.2 80
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
w
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>w to /index.html not supported.<br />
</p>
<hr>
<address>Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.6 with Suhosin-Patch Server at caspermac.nyc.rr.com Port 80</address>
</body></html>
Connection closed by foreign host.
casper@casper-laptop:~$
 
Old 08-21-2010, 10:31 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

The "telnet" client is a handy-dandy tool that lets you connect to any port you want (for example, HTTP port 80) and send and receive characters with the server on that port. It's great for troubleshooting SMTP problems, or verifying you can connect to an HTTP web server.

However....

A "telnet" client's main purpose is to ... well, to do "telnet".

And it sounds like you don't have a telnet server running on your host.

Not surprising: telnet is NOT installed or enabled by default on most Linux hosts nowadays. Using "telnet" across the internet is dangerous - because your username and password are transmitted in clear text.

So if you want to use telnet in-house (I do all the time) - just install a telnet server and enable it.

And if you want to use telnet over the internet ... I strongly urge you to reconsider, and just use "ssh" instead.

IMHO .. PSM

Last edited by paulsm4; 08-21-2010 at 10:33 PM.
 
Old 08-21-2010, 11:57 PM   #3
xtacease
LQ Newbie
 
Registered: Oct 2007
Location: Austin/Warsaw
Distribution: oSuse 11.1
Posts: 12

Rep: Reputation: 1
Dittos @paulsm4. Telnet server seems arbitrary if you have ssh up n running.

However...

Perhaps a firewall is blocking incoming telnet connections. Can you telnet out?

Code:
nmap 127.0.0.1
Run this from the server to make sure telnet port is open. Though clearly it is not recommended for internet interfaces.

Last edited by xtacease; 08-21-2010 at 11:57 PM. Reason: nmap, not namp :)
 
  


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
Error while connecting with telnet naw_deepak Linux - General 3 01-12-2009 10:58 PM
Error with telnet naw_deepak Linux - General 2 12-26-2008 04:01 AM
Telnet Error paragkalra Linux - Networking 1 12-20-2007 05:57 PM
error while connecting through telnet anurag1510 Red Hat 4 09-20-2005 08:49 AM
telnet error -- help! calebsg Linux - Networking 1 11-04-2002 06:39 AM


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