The content of this article mainly explains the function of telnet in Linux. Interested friends may wish to take a look. The method described in this article is simple, quick and practical. Now let the editor take you to learn what the role of telnet in linux is!
In linux, telnet is the user interface of the TELNET protocol, which is based on the Telnet The remote login program of the protocol is used to log in to the remote host, and can also determine whether a certain port of the remote server can be accessed. The syntax telnet [-8acdEfFKLrx][-b
][-e ][-k ][-l ][-n ][-S ][-X ][host name or IP address ].
telnet It is a remote login program based on the Telnet protocol, which is used to log in to the remote host and manage the remote host.
The telnet command is the user interface of the TELNET protocol. It supports two modes: command mode and session mode. Although telnet supports many commands, in most cases, we just use it to check whether the target host is open A port (23 by default).
Because telnet uses clear text to transmit messages, the security is not good. Many Linux servers do not open telnet services, but switch to the more secure ssh method. But there are still many other systems that may use telnet to provide remote login, so it is still necessary to figure out how to use telnet.
The telnet command can also be used for other purposes, such as determining whether a port on a remote server is accessible.
In addition, the Telnet protocol is a member of the TCP/IP protocol family. It is a standard protocol for Internet remote login services. It belongs to the application layer protocol and realizes remote login based on the TCP protocol.
Command format
telnet [-8acdEfFKLrx][-b
Option Description
-8 allows the use of 8-bit character data , including input and output
-a Attempt to automatically log in to the remote system
-b
(1) Log in to the host. The provided port is not shown and defaults to 23.
telnet 192.168.0.5
(2) Confirm whether a certain port of the remote server is available. For example, check whether port 22 of the ssh service of the remote server is open.
telnet 10.234.178.144 22
Trying 10.234.178.144...
Connected to 10.234.178.144.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.0
The above means that port 22 of the remote server's ssh service has been opened. Note that this does not mean that using the ssh command can definitely establish an SSH link with the remote server, and authorization from the remote server is required.
(3) Enter the command line interactive mode.
If telnet is invoked without a host parameter, it will enter command mode with a prompt of telnet>.
telnet
telnet>
Common subcommands in interactive mode are:
auth
At this point, I believe that everyone has a deeper understanding of the role of telnet in Linux, so let's do it in practice! This is the Yisu Cloud website. For more related content, you can enter the relevant channels for inquiries, follow us, and continue to learn!
Copyright Description:No reproduction without permission。
Knowledge sharing community for developers。
Let more developers benefit from it。
Help developers share knowledge through the Internet。
Follow us