找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7544|回复: 16

[k2p] k2p开启telnet后怎么关闭

[复制链接]
发表于 2017-8-22 14:22 | 显示全部楼层 |阅读模式
按照a大的方法开启了telnet后,怎么关闭,输入a大的命令后,telnet还是能够连接,请教大神。
我的恩山、我的无线 The best wifi forum is right here.
发表于 2017-8-22 14:38 | 显示全部楼层
恢复出厂好像就可以
来自微站
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 14:39 | 显示全部楼层
开之前备份,用完还原,不知道有没有用,我不记得了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 14:45 | 显示全部楼层
但是恢复出厂后开启的ssh也关闭了,我只想关闭telnet

点评

小白求稳,像这么个高大上的功能,许多人开都开不了,你为啥要关闭呢?  详情 回复 发表于 2017-8-25 08:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 14:51 | 显示全部楼层
试试 Shell 执行 telnetd_startup clear
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 14:57 | 显示全部楼层
不认真看帖……
后续如需取消telnet,可以编辑/etc/rc.local,加#号注释telnet行即可:
#/usr/sbin/telnetd -l /bin/login.sh
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 15:30 | 显示全部楼层
改个复杂点的密码就好啦。关不关无所谓了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 15:38 | 显示全部楼层
chaohua27 发表于 2017-8-22 14:57
不认真看帖……
后续如需取消telnet,可以编辑/etc/rc.local,加#号注释telnet行即可:
#/usr/sbin/telnet ...

/etc/rc.local #/usr/sbin/telnetd -l /bin/login.sh   是这样的命令吧,我试过不行啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 15:40 | 显示全部楼层
kafma 发表于 2017-8-22 15:30
改个复杂点的密码就好啦。关不关无所谓了

telnet没有密码,ssh可以设置密码的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 15:54 | 显示全部楼层
  1. sed -i '/telnetd/d' /etc/rc.local
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 19:42 | 显示全部楼层
随风飘扬 发表于 2017-8-22 15:38
/etc/rc.local #/usr/sbin/telnetd -l /bin/login.sh   是这样的命令吧,我试过不行啊

!!!!
醉了!是要你编辑那个rc.local文件,在前面加个井号保存
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 19:46 | 显示全部楼层
chaohua27 发表于 2017-8-22 19:42
!!!!
醉了!是要你编辑那个rc.local文件,在前面加个井号保存

#/etc/rc.local 是这样就可以了吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 19:48 | 显示全部楼层
然后怎么保存,#/usr/sbin/telnetd -l /bin/login.sh这个命令什么意思
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 19:54 | 显示全部楼层
随风飘扬 发表于 2017-8-22 19:46
#/etc/rc.local 是这样就可以了吗

打开这个文件,能听懂么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 20:44 | 显示全部楼层
#/usr/sbin/telnetd -l /bin/login.sh这个命令什么意思
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 19:59

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表