linux 安装配置telnet服务

安装环境

操作系统:centos7

简介

    TELNET协议是Internet远程登录服务的标准协议和主要方式,是TCP/IP协议族中的一员。

    它为用户提供了在本地计算机上完成远程主机工作的能力,主要用途就是使用远程计算机上所拥有的本地计算机没有的信息资源,是常用的远程控制Web服务器的方法。


安装

yum安装telnet 客户端与服务端

[root@localhost ~]# yum -y install telnet telnet-server xinetd
   

启动服务 

注意:启动telnet需要先设置开机自启动,不然无法启动

[root@localhost ~]# systemctl enable xinetd.service
[root@localhost ~]# systemctl start xinetd
[root@localhost ~]# systemctl enable telnet.socket
[root@localhost ~]# systemctl start telnet.socket


测试链接

telnet 服务端IP

[root@localhost ~]# telnet 11.11.11.27
Trying 11.11.11.27...
Connected to 11.11.11.27.
Escape character is '^]'.

Kernel 3.10.0-1127.el7.x86_64 on an x86_64
localhost login: test
Password:
Last failed login: Mon Jun 22 19:43:54 CST 2020 from ::ffff:11.11.11.24 on pts/1
There was 1 failed login attempt since the last successful login.
[test@localhost ~]$ ls

猜你喜欢

转载自www.cnblogs.com/sunjianlin/p/13178805.html