linux如何添加telnet服務

1、安裝telnet安全

一、檢測telnet-server的rpm包是否安裝 

[root@localhost ~]# rpm -qa telnet-server 
若無輸入內容,則表示沒有安裝。出於安全考慮telnet-server.rpm是默認沒有安裝的,而telnet的客戶端是標配。即下面的軟件是默認安裝的。測試

二、若未安裝,則安裝telnet-server,不然忽略此步驟rest

[root@localhost ~]#yum install telnet-server  
 
 
三、檢測telnet-server的rpm包是否安裝 

[root@localhost ~]# rpm -qa telnet 
telnet-0.17-47.el6_3.1.x86_64server

四、若未安裝,則安裝telnet,不然忽略此步驟進程

[root@localhost ~]# yum install telnet軟件

 

2、從新啓動xinetd守護進程 service

因爲telnet服務也是由xinetd守護的,因此安裝完telnet-server,要啓動telnet服務就必須從新啓動xinetd 
[root@locahost ~]#service xinetd restart yum

 
3、測試
telnet www.baidu.com 80
 
返回相似以下則成功:

Trying 115.239.210.27...
Connected to www.baidu.com.
Escape character is '^]'.客戶端

相關文章
相關標籤/搜索