安裝環境
操作系統: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