LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   telnet error --- (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-error-827724/)

casperdaghost 08-21-2010 09:10 PM

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:~$

paulsm4 08-21-2010 09:31 PM

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

xtacease 08-21-2010 10:57 PM

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.


All times are GMT -5. The time now is 03:46 PM.