linux7开启telnet服务,centos7开启telnet服务

centos7安装telnet

安装telnet-server

Telnet服务在CentOS7上是单独的一个服务,不用安装xinetd,只要安装telnet-server,然后启动telnet服务就可以了。

yum install telnet-server

启动telnet服务

systemctl enable telnet.socket

systemctl start telnet.socket

启用root用户登录

如果要使用root用户登录,也是需要在/etc/securetty文件中添加pts终端入口的(pts/0代表登陆的终端第一个,pts/1代表第二个)

vim /etc/securetty

......

pts/0

pts/1

pts/2

pts/3

pts/4

pts/5

pts/6

pts/7

pts/8

pts/9

另:centos6安装telnet

安装telnet-server

在CentOS6中,telnet服务是由xinetd管理的,没有单独的服务。

yum install xinetd telnet-server

配置文件,启用telnet服务

由于是xinetd服务管的,配置文件都在/etc/xinetd.d目录下

修改/etc/xinetd.d/telnet文件,只要把其中的“disable = yes”改为“ disable = no”,就是启用telnet服务了。

vi /etc/xinetd.d/telnet

修改完,重启xinetd服务就可以了。

chkconfig xinted on

service xinetd restart

启用root用户登录

如果要使用root用户登录,也是需要在/etc/securetty文件中添加pts终端入口的(pts/0代表登陆的终端第一个,pts/1代表第二个)

vim /etc/securetty

......

pts/0

pts/1

pts/2

pts/3

pts/4

pts/5

pts/6

pts/7

pts/8

pts/9

使用telnet客户端远程登录

要使用telnet客户端,需要先安装telnet客户端软件。

yum install telnettelnet命令格式:telnet 远程服务器IP地址或主机名 远程服务器telnet服务端口

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值