debian下启动telnet服务

root@2[/]# apt-get install xinetd
正在读取软件包列表...
正在分析软件包的依赖关系树...
下列【新】软件包将被安装:
  xinetd
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 0B/130kB 的软件包。
解压缩后会消耗掉 348kB 的额外空间。
Selecting previously deselected package xinetd.
(Reading database ... 65331 files and directories currently installed.)
Unpacking xinetd (from .../xinetd_1%3a2.3.13-2_i386.deb) ...
Setting up xinetd (2.3.13-2) ...
Starting internet superserver: xinetd.
Stopping internet superserver: xinetd.
Adding `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd’
root@2[/]# apt-get install telnetd
正在读取软件包列表...
正在分析软件包的依赖关系树...
下列【新】软件包将被安装:
  telnetd
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 0B/40.6kB 的软件包。
解压缩后会消耗掉 139kB 的额外空间。
Selecting previously deselected package telnetd.
(Reading database ... 65337 files and directories currently installed.)
Unpacking telnetd (from .../telnetd_0.17-25_i386.deb) ...
Setting up telnetd (0.17-25) ...
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:
telnet          stream  tcp     nowait  telnetd.telnetd /usr/sbin/tcpd  /usr/sbin/in.telnetd
If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
-----------------------------------------------------------
新建一个文件/etc/xinetd.d/telnet,内容如下,并保存
root@2[/]# nano -w /etc/xinetd.d/telnet
  GNU nano 1.2.4             File: /etc/xinetd.d/telnet                        
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        disable = no
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        server_args
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值