如何在Linux和Windows中安装和使用Telnet客户端

Telnet is easiest remote management protocol used in Computer networks. It remains popular even today because of its simplicity. Telnet is a client server protocol where clients uses telnet tool which to connect remote telnet server. This telnet server may be switch, router, windows operating system, linux server or a printer.  In this tutorial we will look how to install and enable telnet with some usage examples.

Telnet是计算机网络中使用的最简单的远程管理协议。 由于它的简单性,即使在今天它仍然很受欢迎。 Telnet是客户端服务器协议,其中客户端使用telnet工具连接远程telnet服务器。 该远程登录服务器可以是交换机,路由器,Windows操作系统,Linux服务器或打印机。 在本教程中,我们将通过一些用法示例介绍如何安装和启用telnet。

安装 (Install)

Ubuntu,Debian,Mint,Kali(Ubuntu, Debian, Mint, Kali)

We can install telnet package with the following command in deb based Linux distributions.

我们可以在基于debLinux发行版中使用以下命令安装telnet软件包。

$ sudo apt install telnet

Fedora,CentOS,RHEL (Fedora, CentOS, RHEL)

We can install telnet package with yum command for rpm based distributions like Fedora, centOS and RHEL.

我们可以使用yum命令安装telnet软件包,以用于基于rpm的发行版,如Fedora,centOS和RHEL。

$ sudo yum install telnet

视窗 (Windows)

As windows operating system do not have online package manager telnet is provided by inline. By defualt telnet  server and client applications are not enabled. We will enable the client where server can be enabled too. Follow these instructions.

由于Windows操作系统没有在线软件包管理器,因此telnet是由内联提供的。 缺省情况下,不会启用telnet服务器和客户端应用程序。 我们将在也可以启用服务器的客户端上启用。 请遵循以下说明。

  1. Click Start Control Panel.

    单击开始>控制面板

  2. Click Programs and Features.

    单击程序和功能

  3. Click Turn Windows features on or off.

    单击“打开或关闭Windows功能”

  4. In the Windows Features dialog box, check the Telnet Client check box.

    在“ Windows功能”对话框中,选中“ Telnet客户端”复选框。

Windows
Windows
视窗

安全(Security)

As telnet is old fashion protocol it provides some defects. One of the most important negative issue with telnet is its security features. Telnet do not have any encryption support as builtin. So telnet traffic can be easily eavesdropped during transmission. So do not rely telnet on insecure networks.

由于telnet是老式协议,因此存在一些缺陷。 telnet最重要的负面问题之一是其安全功能。 Telnet没有内置的任何加密支持。 因此,在传输过程中可以很容易地窃听telnet流量。 因此,请勿将telnet依赖于不安全的网络。

连接Telnet服务器 (Connect Telnet Server)

We will start by simply connecting a telnet server. The simplest form is just providing the host name or IP address of the telnet server. The syntax is like below. In this example telnet server is a Ubuntu 17.10 .

我们将从简单地连接telnet服务器开始。 最简单的形式就是提供telnet服务器的主机名或IP地址。 语法如下。 在此示例中,telnet服务器是Ubuntu 17.10。

$ telnet 192.168.115.143
Connect Telnet Server
Connect Telnet Server
连接Telnet服务器

连接不同的Telnet端口(Connect Different Telnet Port)

The default port for telnet is TCP 23 . By default it is not specified during connection. But in some cases telnet server may use different then 23. We can specify the port number by adding after the host name or IP address. In this example we will connect port number 2323 .

telnet的默认端口是TCP 23。 默认情况下,连接期间未指定。 但是在某些情况下,telnet服务器可能使用的端口号可能不同于23。我们可以通过在主机名或IP地址之后添加来指定端口号。 在此示例中,我们将连接端口号2323

$ telnet  192.168.115.143 2323

指定登录名 (Specify Login Name)

Most cases telnet servers requires authentication. In order to authenticate ourself we need to provide some user name and password. The regular usage is providing username and then put password interactively.  We will use -l which stands for login.

多数情况下,Telnet服务器需要身份验证。 为了验证我们自己,我们需要提供一些用户名和密码。 常规用法是提供用户名,然后交互输入密码。 我们将使用-l代表登录。

$ telnet -l ismail 192.168.115.143
Specify Login Name
Specify Login Name
指定登录名

互动壳(Interactive Shell)

Telnet provides interactive shell where it provides its own environment. We can enter interactive shell just putting telnet command.

Telnet提供了交互式外壳程序,并在其中提供了自己的环境。 我们只需输入telnet命令即可进入交互式shell。

$ telnet

We can get help for interactive shell with help command. We can see that we will use open command and the hostname or IP address to connect telnet server.

我们可以通过help命令获得交互式shell的help 。 我们可以看到我们将使用open命令以及主机名或IP地址来连接telnet服务器。

help
help
help
帮帮我

We will connect to the localhost telnet server.

我们将连接到localhost telnet服务器。

open localhost
Open Connection
Open Connection
打开连接
LEARN MORE  What Is Default SFTP Port and How To Change SFTP Port Number?
了解更多信息什么是默认SFTP端口以及如何更改SFTP端口号?

翻译自: https://www.poftut.com/install-and-use-telnet-client-in-linux-and-windows/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值