2024年4月1日发(作者:)

linux如何开启telnet服务

linux系统你只到吗,他可以开启telnet服务,那linux如何开启telnet服务的呢?下面

是店铺收集整理的linux如何开启telnet服务,希望对大家有帮助~~

linux开启telnet服务的方法

工具/原料

Linux

6.x86_

方法/步骤

1. 切换至root用户;

2. 如果Linux没有安装telnet服务需要先安装,安装过开通即可;

3. 检测telnet的rpm包是否安装

[root@localhost ~]# rpm -qa telnet

6.x86_64

[root@localhost ~]#

4. 安装telnet安装包:

[root@localhost ~]# rpm -ivh 6.x86_

warning: 6.x86_: Header V3 RSA/SHA256 Signature,

key ID fd431d51: NOKEY

########################################### [100%]

package xinetd-2:6_4.x86_64 (which is newer than xinetd-2:2.3.14-

6.x86_64) is already installed

file /usr/sbin/xinetd from install of xinetd-2:6.x86_64 conflicts with

file from package xinetd-2:6_4.x86_64

[root@localhost ~]#

5. 修改telnet服务配置文件

vi /etc/xinetd.d/telnet

service telnet

{

disable = yes

flags = REUSE

socket_type = stream

wait = no

user = root

server = /usr/sbin/d

log_on_failure += USERID

}

将disable=yes改为disable=no

注意:安装telnet-server服务后,系统才会有/usr/sbin/d文件

6.重启telnet服务

[root@localhost root]#service xinetd restart

7. 测试是否可以,若果不行,检查防火墙是否关闭

[root@localhost ~]# telnet 127.0.0.1

Trying 127.0.

Connected to 127.0.0.1.

Escape character is '^]'.

CentOS release 6.4 (Final)

Kernel 6.x86_64 on an x86_64

login: