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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM