TELNETD(8)
π TELNETD(8) β System Manager's Manual π
okay so before we even get into it: this is TELNETD(8), straight out of the System Manager's Manual, and it is the granddaddy situation for remote logins. bestie, this manpage is long, so buckle up β we're doing this in parts. β¨
πΈ NAME πΈ
in.telnetd β the DARPA TELNET protocol server. yes, that's the whole name. it's giving "i've been here since the beginning of the internet and i have the receipts." no cap. π
ngl the vibes are immaculate but also slightly historical β it's a server, so it's the one doing the listening, not the one knocking on the door.
π¦ SYNOPSIS π¦
here's the summoning ritual, character for character, exactly as written:
in.telnetd [-Uhlkn46H] [-D debugmode] [-Iinitid] [-S tos] [-X authtype]
[-rlowpty-highpty] [-u len] [-L /bin/login] [-debug [port]]
lowkey a lot of little letters, ik, but they're all going to get their moment. some quick observations so you're not caught off guard:
- that first cluster β
-Uhlkn46Hβ is just a bunch of short flags holding hands π -D debugmodeand-Iinitidare the ones that take a value stuck right onto them with no space, so like-D+ whatever the debug mode is. same energy for-I+ the init id.-S tostakes atosvalue,-X authtypetakes anauthtype, and-u lentakes alen(that's a length, bestie).-rlowpty-highptyis the cutest one: a literallowptyandhighptyglued together by a hyphen inside a single flag. it's giving range. π-L /bin/loginlets you point at a different login binary β that path right there is the default-looking one, keep it in your pocket.-debug [port]is the long-form debug situation, andportis optional β it's sitting in brackets because it might not be there at all.
that's the whole silhouette! the options themselves get the full glow-up in the next part, so don't go anywhere. π
β¨ DESCRIPTION β¨
okay so bestie, picture this: in.telnetd is a server, and it's out here supporting the DARPA standard TELNET virtual terminal protocol. icon behavior honestly π
Normally? It gets invoked by the internet server (peep inetd(8)) whenever there's a request to connect to the TELNET port β the one listed in the /etc/services file (see services(5)). But if you're feeling brave and want to start in.telnetd manually instead of going through inetd(8), you can use the -debug option. and if you do start it that way, you can pass port to run in.telnetd on an alternate TCP port number. main character energy π₯
The in.telnetd command accepts the following options:
-Ddebugmode β this one's purely for debugging purposes. It letsin.telnetdprint out debugging information straight to the connection, so you can literally watch whatin.telnetdis doing in real time. There are several possible values for debugmode:optionsβ prints information about the negotiation of TELNET options.reportβ prints the options information, plus some additional information about what processing is going on.netdataβ displays the data stream received byin.telnetd.ptydataβ displays data written to the pty.exerciseβ π has not been implemented yet. (sorry bestie)
-debugβ enables debugging on each socket created byin.telnetd(seeSO_DEBUGinsocket(2)).-hβ disables the printing of host-specific information before login has been completed. privacy era π-Hβ instruct theloginprogram to suppress printing the hostname before the prompt.-Iinitid β heads up, this option is only applicable to UNICOS systems prior to 7.0. It specifies the ID from/etc/inittabto use wheninitstarts login sessions. The default ID is"fe".-kβ this option is only useful ifin.telnetdhas been compiled with both linemode and kludge linemode support. If-kis specified, then if the remote client does not support theLINEMODEoption,in.telnetdwill operate in character at a time mode. It will still support kludge linemode, but will only go into kludge linemode if the remote client requests it. (this is done by the client sendingDONT SUPPRESS-GO-AHEADandDONT ECHO.) The-koption is most useful when there are remote clients that do not support kludge linemode, but pass the heuristic (if they respond withWILL TIMING-MARKin response to aDO TIMING-MARK) for kludge linemode support. ikyk ikyk π§-lβ specifies line mode. Tries to force clients to use line-at-a-time mode. If theLINEMODEoption is not supported, it will go into kludge linemode.-nβ disable TCP keep-alives. Normallyin.telnetdenables the TCP keep-alive mechanism to probe connections that have been idle for some period of time to determine if the client is still there, so that idle connections from machines that have crashed or can no longer be reached may be cleaned up. it's giving ghosting, but make it networking π»-rlowpty-highpty β this option is only enabled whenin.telnetdis compiled for UNICOS. It specifies an inclusive range of pseudo-terminal devices to use. If the system has sysconf variable_SC_CRAY_NPTYconfigured, the default pty search range is0to_SC_CRAY_NPTY; otherwise, the default range is0to128. Either lowpty or highpty may be omitted to allow changing either end of the search range. If lowpty is omitted, the-character is still required so thatin.telnetdcan differentiate highpty from lowpty. no skipping the dash bestie, it's load-bearing π-Stos β (bestie the page literally gives us zero description for this one, so I'm not about to make something up. it's just sitting there being mysterious. leaving it exactly as-is fr fr π)-ulen β this option is used to specify the size of the field in theutmpstructure that holds the remote host name. If the resolved host name is longer than len, the dotted decimal value will be used instead. This allows hosts with very long host names that overflow this field to still be uniquely identified. Specifying-u0indicates that only dotted decimal addresses should be put into theutmpfile.-Uβ this option causesin.telnetdto refuse connections from addresses that cannot be mapped back into a symbolic name via thegethostbyaddr(3)routine. no name? no entry. periodt π«-Xauthtype β this option is only valid ifin.telnetdhas been built with support for the authentication option. It disables the use of authtype authentication, and can be used to temporarily disable a specific authentication type without having to recompilein.telnetd. so convenient honestly π-Lpathname β specify pathname to an alternativeloginprogram.-4β (again, no description on the page for this one π just vibes and a number. not inventing anything!)-6β specifies address family to be used on-debugmode. During normal operation (called frominetd(8))in.telnetdwill use the file descriptor passed frominetd(8).
in.telnetd operates by allocating a pseudo-terminal device (see pty(4)) for a client, then creating a login process which has the slave side of the pseudo-terminal as stdin, stdout, and stderr. in.telnetd manipulates the master side of the pseudo-terminal, implementing the TELNET protocol and passing characters between the remote client and the login process. it's a whole middleman situation and honestly it's slaying π«Ά
When a TELNET session is started up, in.telnetd sends TELNET options to the client side indicating a willingness to do the following TELNET options, which are described in more detail below:
DO AUTHENTICATION
WILL ENCRYPT
DO TERMINAL TYPE
DO TSPEED
DO XDISPLOC
DO NEW-ENVIRON
DO ENVIRON
WILL SUPPRESS GO AHEAD
DO ECHO
DO LINEMODE
DO NAWS
WILL STATUS
DO LFLOW
DO TIMING-MARK
The pseudo-terminal allocated to the client is configured to operate in cooked mode, and with XTABS and CRMOD enabled (see tty(4)).
πΈ locally enableable TELNET options πΈ
in.telnetd has support for enabling locally the following TELNET options:
WILL ECHOβ when theLINEMODEoption is enabled, aWILL ECHOorWONT ECHOwill be sent to the client to indicate the current state of terminal echoing. When terminal echo is not desired, aWILL ECHOis sent to indicate thatin.telnetdwill take care of echoing any data that needs to be echoed to the terminal, and then nothing is echoed. When terminal echo is desired, aWONT ECHOis sent to indicate thatin.telnetdwill not be doing any terminal echoing, so the client should do any terminal echoing that is needed. yes this is confusing, no I'm not sorry, it's literally what it says πWILL BINARYβ indicates that the client is willing to send a 8 bits of data, rather than the normal 7 bits of the Network Virtual Terminal.WILL SGAβ indicates that it will not be sendingIAC GA, go ahead, commands.WILL STATUSβ indicates a willingness to send the client, upon request, of the current status of all TELNET options.WILL TIMING-MARKβ whenever aDO TIMING-MARKcommand is received, it is always responded to with aWILL TIMING-MARK.WILL LOGOUTβ when aDO LOGOUTis received, aWILL LOGOUTis sent in response, and the TELNET session is shut down. bye bestie β¨WILL ENCRYPTβ only sent ifin.telnetdis compiled with support for data encryption, and indicates a willingness to decrypt the data stream.
π¦ remotely enableable TELNET options π¦
in.telnetd has support for enabling remotely the following TELNET options:
DO BINARYβ sent to indicate thatin.telnetdis willing to receive an 8 bit data stream.DO LFLOWβ requests that the client handle flow control characters remotely.DO ECHOβ this is not really supported, but is sent to identify a 4.2BSDtelnet(1)client, which will improperly respond withWILL ECHO. If aWILL ECHOis received, aDONT ECHOwill be sent in response. it's a trap detector basically πDO TERMINAL-TYPEβ indicates a desire to be able to request the name of the type of terminal that is attached to the client side of the connection.DO SGAβ indicates that it does not need to receiveIAC GA, the go ahead command.DO NAWSβ requests that the client inform the server when the window (display) size changes.DO TERMINAL-SPEEDβ indicates a desire to be able to request information about the speed of the serial line to which the client is attached.DO XDISPLOCβ indicates a desire to be able to request the name of the X windows display that is associated with the telnet client.DO NEW-ENVIRONβ indicates a desire to be able to request environment variable information, as described in RFC 1572.DO ENVIRONβ indicates a desire to be able to request environment variable information, as described in RFC 1408.DO LINEMODEβ only sent ifin.telnetdis compiled with support for linemode, and requests that the client do line by line processing.DO TIMING-MARKβ only sent ifin.telnetdis compiled with support for both linemode and kludge linemode, and the client responded withWONT LINEMODE. If the client responds withWILL TM, the it is assumed that the client supports kludge linemode. Note that the[-k]option can be used to disable this.DO AUTHENTICATIONβ only sent ifin.telnetdis compiled with support for authentication, and indicates a willingness to receive authentication information for automatic login.DO ENCRYPTβ only sent ifin.telnetdis compiled with support for data encryption, and indicates a willingness to decrypt the data stream.
π FILES π
/etc/services/etc/inittab(UNICOS systems only)/etc/iptos(if supported)
π SEE ALSO π
β¨ STANDARDS β¨
okay so bestie, in.telnetd is not just vibing on its own β it's literally built on a whole stack of RFCs and it respects them. here's the full syllabus, no skips:
RFC-854β TELNET PROTOCOL SPECIFICATIONRFC-855β TELNET OPTION SPECIFICATIONSRFC-856β TELNET BINARY TRANSMISSIONRFC-857β TELNET ECHO OPTIONRFC-858β TELNET SUPPRESS GO AHEAD OPTIONRFC-859β TELNET STATUS OPTIONRFC-860β TELNET TIMING MARK OPTIONRFC-861β TELNET EXTENDED OPTIONS - LIST OPTIONRFC-885β TELNET END OF RECORD OPTIONRFC-1073β Telnet Window Size OptionRFC-1079β Telnet Terminal Speed OptionRFC-1091β Telnet Terminal-Type OptionRFC-1096β Telnet X Display Location OptionRFC-1123β Requirements for Internet Hosts -- Application and SupportRFC-1184β Telnet Linemode OptionRFC-1372β Telnet Remote Flow Control OptionRFC-1416β Telnet Authentication OptionRFC-1411β Telnet Authentication: Kerberos Version 4RFC-1412β Telnet Authentication: SPXRFC-1571β Telnet Environment Option Interoperability IssuesRFC-1572β Telnet Environment Option
like, yes, it's a reading list π but the protocol girlies know iykyk π
π BUGS π
ngl, it's not all slay. here's the receipts π§Ύ
- Some TELNET commands are only partially implemented. not a full vibe, more of a situationship.
- Because of bugs in the original 4.2 BSD
telnet(1),in.telnetdperforms some dubious protocol exchanges to try to discover if the remote client is, in fact, a 4.2 BSDtelnet(1). it's giving detective era, lowkey doing the most π - Binary mode has no common interpretation except between similar operating systems (Unix in this case). so like, keep it in the family π«Ά
- The terminal type name received from the remote client is converted to lower case. that's just the rules, don't fight it.
in.telnetdnever sends TELNETIAC GA(go ahead) commands. not once. not ever. periodt.WONT CRYPT.in.telnetdtalks over insecure, unencrypted communications channels. this is the important one, so listen up:
π¨ bestie please, use sshd(8) instead. this is not a drill, the traffic is literally in plaintext out in the open, do NOT send your secrets through here ππ
and that's the whole page, we ate and left no crumbs π
β¨ she's a Debian original from March 1, 1994, filed under TELNETD(8) β vintage icon behavior, honestly ππ¦ go use sshd though, fr fr πΈ
π¦ where this page comes from
- opensuse-leap 16.0: telnet-server 1.2-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: telnet-server 1.2-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: telnet-server 1.2-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: telnet-server 1.2-160000.2.2 Β· BSD-3-Clause
- Copyright (c) 1983, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms