Re: telnet Help

From: Peter Jensen (usenet_at_pekajemaps.homeip.net)
Date: 07/21/04


Date: 21 Jul 2004 19:54:59 GMT

Richard Adams wrote:

>> There are no telnet commands, as such. A telnet connection is just a
>> direct TCP connection to port 23. The listening server usually
>> connects the incoming connection to a login program that then spawns
>> the users shell, while the client emulates some sort of terminal
>> (like VT100). Whatever commands are available in the shell and the
>> target environment is what you have to work with.
>
> No telnet commands as such, whats that supposed to mean,

I mean that when you telnet to something, the commands you end up
entering on the command line don't have anything to do with telnet, but
only the environment on the other side.

> how about the 17 options of the telnet command as per 'man telnet'

Implementation specific. Telnet is a protocol. Specifically RFC 854.
Very little is defined, and most is optional. The telnet protocol is a
low-level definition on how you connect terminals and terminal-oriented
processes (like the users shell) across a network.

> how about all the extra commands as per the escape command so on and
> so forth

I think I see where we're diverging. You're talking about a specific
program called 'telnet', which is just one implementation. I'm talking
about the protocol in general.

> and not forgetting you can telnet to "any" port not just port 23.

Since telnetting is so low-level, it can indeed be used to connect to
just about any port. If the protocol used by the daemon listening on
that port is text-oriented (like HTTP), a human may even be able to talk
to the server. I wouldn't call that telnetting, though.

> There are many applications which use telnet as a protocol but listen
> on other ports as well, or do you mean you have never really used
> anything else than; telnet <host> <port>

I'm really not sure what you're trying to say here ...

> Anyway as has been respectivly pointed out here by some, "dont use
> telnet" for login shells, use ssh instead, there is more than just big
> brother watching thesedays.

Indeed. Not that I think anyone is constantly monitoring all Internet
traffic, but it's the unexpected intruder that gets you. Therefore
always expect the worst, and you'll never be unpleasantly surprised.

-- 
PeKaJe
We ARE as gods and might as well get good at it.
	-- Whole Earth Catalog


Relevant Pages

  • Re: Telnet port 25
    ... Subject: Telnet port 25 ... is the sole responsibility of the customer and depends on the customer's ... Configuring sendmail 8.11.0 for Anti-Relay ...
    (AIX-L)
  • Re: Suggestion for a lexical (login mode via TCPIP)
    ... Not sure of it is the right one to modify or to add another one, but it would be useful to be able to get information on whether the user us coming in via FTP, TELNET, etc. ... This would also allow a LOGIN.COM to check if someone is coming in through a secure/SSL port for instance. ... For the HP SSH server, it seems to be undefined. ... forget about the possibility of virtual terminals. ...
    (comp.os.vms)
  • Re: Cannot telnet to port 25 from Windows 2003 SBS server to itself
    ... XFOR: Telnet to Port 25 of IMC to Test IMC Communication: ... Microsoft is providing this information as a convenience to you. ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: RWW fails from Internet
    ... on port 4125: Connect failed" when you telnet to 4125. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: telnet Help
    ... > the incoming connection to a login program that then spawns the users ... No telnet commands as such, whats that supposed to mean, how about the 17 ... you can telnet to "any" port not just port 23. ...
    (alt.os.linux)