Telnet: Unterschied zwischen den Versionen
K Textersetzung - „Kategorie:Netzwerkbefehle“ durch „Kategorie:Netzwerk:Befehle“ |
K Textersetzung - „== Syntax ==“ durch „== Aufruf ==“ |
||
(23 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 5: | Zeile 5: | ||
* Der Befehl telnet wird für die interaktive Kommunikation mit einem anderen Rechner mit Hilfe des Protokolls TELNET verwendet. | * Der Befehl telnet wird für die interaktive Kommunikation mit einem anderen Rechner mit Hilfe des Protokolls TELNET verwendet. | ||
* Für Fernanmeldungen (remote login) sollte anstatt des vorliegenden Clients ein SSH-Client oder in einigen Fällen Varianten wie telnet-ssl oder Kerberos-Telnet-Clients vorgezogen werden. Der wichtigste Grund ist, dass diese Implementierung Benutzernamen und Passwort im Klartext austauscht. | * Für Fernanmeldungen (remote login) sollte anstatt des vorliegenden Clients ein SSH-Client oder in einigen Fällen Varianten wie telnet-ssl oder Kerberos-Telnet-Clients vorgezogen werden. Der wichtigste Grund ist, dass diese Implementierung Benutzernamen und Passwort im Klartext austauscht. | ||
* Andererseits ist das vorliegende Programm ausreichend für allgemeine Anwendungsfälle bei der Netzwerkdiagnose, wie | * Andererseits ist das vorliegende Programm ausreichend für allgemeine Anwendungsfälle bei der Netzwerkdiagnose, wie von SMTP-Diensten, und kann sich so als praktisch erweisen. | ||
The telnet command is used for interactive communication with another host using the TELNET protocol. | The telnet command is used for interactive communication with another host using the TELNET protocol. | ||
Zeile 12: | Zeile 12: | ||
== Installation == | == Installation == | ||
== | == Aufruf == | ||
$ '''telnet [-468ELadr] [-S tos] [-b address] [-e escapechar] [-l user] [-n tracefile] [host [port]]''' | |||
=== Optionen === | === Optionen === | ||
{| class="wikitable sortable" | {| class="wikitable sortable options" | ||
|- | |- | ||
! Aufgabe !! Befehl | ! Aufgabe !! Befehl | ||
Zeile 33: | Zeile 33: | ||
| -a || Attempt automatic login. Currently, this sends the user name via the USER variable of the NEW-ENVIRON option if supported by the remote system. The username is retrieved via getlogin(3). | | -a || Attempt automatic login. Currently, this sends the user name via the USER variable of the NEW-ENVIRON option if supported by the remote system. The username is retrieved via getlogin(3). | ||
|- | |- | ||
| -b address || Use bind(2) on the local socket to bind it to a specific local address. | | -b address || Use bind(2) on the local socket to bind it to a specific local address. | ||
|- | |- | ||
| -d || Sets the initial value of the debug toggle to TRUE. | | -d || Sets the initial value of the debug toggle to TRUE. | ||
Zeile 39: | Zeile 39: | ||
| -r || Emulate rlogin(1). In this mode, the default escape character is a tilde. Also, the interpretation of the escape character is changed: an escape character followed by a dot causes telnet to disconnect from the remote host. A ^Z instead of a dot suspends telnet, and a ^] (the default telnet escape character) generates a normal telnet prompt. These codes are accepted only at the beginning of a line. | | -r || Emulate rlogin(1). In this mode, the default escape character is a tilde. Also, the interpretation of the escape character is changed: an escape character followed by a dot causes telnet to disconnect from the remote host. A ^Z instead of a dot suspends telnet, and a ^] (the default telnet escape character) generates a normal telnet prompt. These codes are accepted only at the beginning of a line. | ||
|- | |- | ||
| -S tos || Sets the IP type-of-service (TOS) option for the telnet connection to the value tos. | | -S tos || Sets the IP type-of-service (TOS) option for the telnet connection to the value tos. | ||
|- | |- | ||
| -e escapechar || Sets the escape character to escapechar. If no character is supplied, no escape character will be used. Entering the escape character while connected causes telnet to drop to command mode. | | -e escapechar || Sets the escape character to escapechar. If no character is supplied, no escape character will be used. Entering the escape character while connected causes telnet to drop to command mode. | ||
|- | |- | ||
| -l user || Specify user as the user to log in as on the remote system. This is accomplished by sending the specified name as the USER environment variable, so it requires that the remote system support the TELNET NEW-ENVIRON option. This option implies the -a option, and may also be used with the open command. | | -l user || Specify user as the user to log in as on the remote system. This is accomplished by sending the specified name as the USER environment variable, so it requires that the remote system support the TELNET NEW-ENVIRON option. This option implies the -a option, and may also be used with the open command. | ||
|- | |- | ||
| -n tracefile || Opens tracefile for recording trace information. See the set tracefile command below. | | -n tracefile || Opens tracefile for recording trace information. See the set tracefile command below. | ||
|} | |||
=== Parameter === | |||
{| class="wikitable options" | |||
|- | |||
! Aufgabe !! Befehl | |||
|- | |- | ||
| host || Specifies a host to contact over the network. | | host || Specifies a host to contact over the network. | ||
Zeile 52: | Zeile 58: | ||
|} | |} | ||
=== | === Umgebung === | ||
* Telnet uses at least the HOME, SHELL, DISPLAY, and TERM environment variables. | * Telnet uses at least the HOME, SHELL, DISPLAY, and TERM environment variables. | ||
* Other environment variables may be propagated to the other side via the TELNET NEW-ENVIRON option. | * Other environment variables may be propagated to the other side via the TELNET NEW-ENVIRON option. | ||
Zeile 58: | Zeile 64: | ||
=== Exit-Status === | === Exit-Status === | ||
== Anwendung == | |||
=== Problembehebung === | |||
== Konfiguration == | == Konfiguration == | ||
=== Dateien === | === Dateien === | ||
{| class="wikitable | {| class="wikitable options" | ||
|- | |- | ||
! Datei !! Beschreibung | ! Datei !! Beschreibung | ||
Zeile 69: | Zeile 77: | ||
|} | |} | ||
<noinclude> | |||
== | == Anhang == | ||
=== Siehe auch === | === Siehe auch === | ||
{{Special:PrefixIndex/{{BASEPAGENAME}}}} | |||
==== Sicherheit ==== | |||
==== Dokumentation ==== | |||
===== RFC ===== | |||
===== Man-Page ===== | |||
===== Info-Pages ===== | |||
==== Links ==== | |||
===== Projekt ===== | |||
===== Weblinks ===== | |||
[[Kategorie:Telnet]] | |||
[[Kategorie:Linux/Befehl]] | |||
[[Kategorie:Netzwerk/Befehl]] | |||
[[Kategorie: | |||
[[Kategorie:Linux | |||
[[Kategorie:Netzwerk | |||
{{DEFAULTSORT:telnet}} | {{DEFAULTSORT:telnet}} | ||
</noinclude> |
Aktuelle Version vom 12. November 2024, 19:42 Uhr
telnet - Benutzerschnistelle für das Telnet-Protokoll
Beschreibung
- Der Befehl telnet wird für die interaktive Kommunikation mit einem anderen Rechner mit Hilfe des Protokolls TELNET verwendet.
- Für Fernanmeldungen (remote login) sollte anstatt des vorliegenden Clients ein SSH-Client oder in einigen Fällen Varianten wie telnet-ssl oder Kerberos-Telnet-Clients vorgezogen werden. Der wichtigste Grund ist, dass diese Implementierung Benutzernamen und Passwort im Klartext austauscht.
- Andererseits ist das vorliegende Programm ausreichend für allgemeine Anwendungsfälle bei der Netzwerkdiagnose, wie von SMTP-Diensten, und kann sich so als praktisch erweisen.
The telnet command is used for interactive communication with another host using the TELNET protocol.
- It begins in command mode, where it prints a telnet prompt ("telnet> ").
- If telnet is invoked with a host argument, it performs an open command implicitly; see the description below.
Installation
Aufruf
$ telnet [-468ELadr] [-S tos] [-b address] [-e escapechar] [-l user] [-n tracefile] [host [port]]
Optionen
Aufgabe | Befehl |
---|---|
-4 | Force IPv4 address resolution. |
-6 | Force IPv6 address resolution. |
-8 | Request 8-bit operation. This causes an attempt to negotiate the TELNET BINARY option for both input and output. By default telnet is not 8-bit clean. |
-E | Disables the escape character functionality; that is, sets the escape character to ``no character. |
-L | Specifies an 8-bit data path on output. This causes the TELNET BINARY option to be negotiated on just output. |
-a | Attempt automatic login. Currently, this sends the user name via the USER variable of the NEW-ENVIRON option if supported by the remote system. The username is retrieved via getlogin(3). |
-b address | Use bind(2) on the local socket to bind it to a specific local address. |
-d | Sets the initial value of the debug toggle to TRUE. |
-r | Emulate rlogin(1). In this mode, the default escape character is a tilde. Also, the interpretation of the escape character is changed: an escape character followed by a dot causes telnet to disconnect from the remote host. A ^Z instead of a dot suspends telnet, and a ^] (the default telnet escape character) generates a normal telnet prompt. These codes are accepted only at the beginning of a line. |
-S tos | Sets the IP type-of-service (TOS) option for the telnet connection to the value tos. |
-e escapechar | Sets the escape character to escapechar. If no character is supplied, no escape character will be used. Entering the escape character while connected causes telnet to drop to command mode. |
-l user | Specify user as the user to log in as on the remote system. This is accomplished by sending the specified name as the USER environment variable, so it requires that the remote system support the TELNET NEW-ENVIRON option. This option implies the -a option, and may also be used with the open command. |
-n tracefile | Opens tracefile for recording trace information. See the set tracefile command below. |
Parameter
Aufgabe | Befehl |
---|---|
host | Specifies a host to contact over the network. |
port | Specifies a port number or service name to contact. If not specified, the telnet port (23) is used. |
Umgebung
- Telnet uses at least the HOME, SHELL, DISPLAY, and TERM environment variables.
- Other environment variables may be propagated to the other side via the TELNET NEW-ENVIRON option.
Exit-Status
Anwendung
Problembehebung
Konfiguration
Dateien
Datei | Beschreibung |
---|---|
/etc/telnetrc | global telnet startup values |
~/.telnetrc | user customized telnet startup values |
Anhang
Siehe auch
Sicherheit
Dokumentation
RFC
Man-Page
Info-Pages
Links
Projekt
Weblinks