linux如何開(kāi)啟telnet服務(wù)?很多朋友對(duì)于這個(gè)問(wèn)題不知道該如何解決;今天小編將為大家?guī)?lái)linux開(kāi)啟telnet服務(wù)的方法,有需要的朋友一起去看看吧!
方法:
1. 切換至root用戶(hù);
2. 如果Linux沒(méi)有安裝telnet服務(wù)需要先安裝,安裝過(guò)開(kāi)通即可
3. 檢測(cè)telnet的rpm包是否安裝
[root@localhost ~]# rpm -qa telnet
telnet-0.17-48.el6.x86_64
[root@localhost ~]#
4. 安裝telnet安裝包:
[root@localhost ~]# rpm -ivh xinetd-2.3.14-34.el6.x86_64.rpm
warning: xinetd-2.3.14-34.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
package xinetd-2:2.3.14-39.el6_4.x86_64 (which is newer than xinetd-2:2.3.14-34.el6.x86_64) is already installed
file /usr/sbin/xinetd from install of xinetd-2:2.3.14-34.el6.x86_64 conflicts with file from package xinetd-2:2.3.14-39.el6_4.x86_64
[root@localhost ~]#
5. 修改telnet服務(wù)配置文件
vi /etc/xinetd.d/telnet
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
將disable=yes改為disable=no
注意:安裝telnet-server服務(wù)后,系統(tǒng)才會(huì)有/usr/sbin/in.telnetd文件
6.重啟telnet服務(wù)
[root@localhost root]#service xinetd restart
7. 測(cè)試是否可以,若果不行,檢查防火墻是否關(guān)閉
[root@localhost ~]# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
CentOS release 6.4 (Final)
Kernel 2.6.32-358.el6.x86_64 on an x86_64
login: