QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: qtal110

有关telnet

[复制链接]
发表于 2004-8-6 00:55:37 | 显示全部楼层
Linux中如何开启Telnet服务(我用的是turbolinux dataserver 7)
在服务器上以root登录后 #后输入 startx  回车
打开第一个主菜单(大车轮图标),点编辑器—高级编辑器,出现编辑器窗口后:
第一步:点打开,位置处输入/etc/xinetd.d/telnet 回车 将该文件中的disable = yes 修改为 disable = no   保存
第二步:点打开,位置处输入/etc/hosts.allow  回车,打开该文件后,找到#in.telnetd : sample.****** ,将前面的#删除掉 ,并将后面的: sample.**修改为:ALL  在最后加一行sshd:ALL  保存 退出 ,然后点主菜单中的注销,退出,回到#号
第三步: #后输入 service  xinetd  restart 回车

看是否开启这二项服务
root登录,#后输入setup 回车 ,选第七项菜单(系统服务管理system services management) 回车,找到并选中telnet 和sshd(在它上面按空格键即可选中),然后用tab键使光标走到OK上,然后回车,退出,用reboot命令重启服务器后。

telnet 客户端windows中有
开始 运行  telnet
putty  可到http://www.zcpg.com.cn/download/putty.exe下载

我也是新手,真想交几个好手朋友)
回复

使用道具 举报

发表于 2004-8-6 06:57:42 | 显示全部楼层
谢谢你了,我试试吧。
回复

使用道具 举报

发表于 2004-8-6 20:06:15 | 显示全部楼层
telentd is controlled by xinetd daemon!
so you can't find file telnetd in floder /etc/rc.d/init.d
you can fand it at floder /etc/xinetd.d
by default , telnetd will not start at the bootup
use commands
chkconfig --add telnetd
chkconfig telnetd on
IT is all
very easy!
回复

使用道具 举报

发表于 2004-8-6 21:17:50 | 显示全部楼层
还是不行的,ciscosys朋友的英文也啃了,这两个文件也有。在Linux RedHat 9.0本机上运行telnet 能登陆,但在WIN2000server中用SecureCRT 3.0、SecureFX、putty均提示The remote system refused the connection.  This
probably means that the remote system does not
provide the service you are attempting to access,
or that the service is being provided on a different
port.
回复

使用道具 举报

发表于 2004-8-6 21:47:10 | 显示全部楼层
自己可以登陆自己说明telnetd 已经正常运行
可能原因是防火墙相应的23端口没有打开
配置防火墙
允许端口为23的;连接进入
回复

使用道具 举报

发表于 2004-8-6 21:55:30 | 显示全部楼层
怎么设置防火墙的端口呀?请告诉我怎么配置防火墙,谢谢先!
回复

使用道具 举报

发表于 2004-8-7 22:02:56 | 显示全部楼层
看看iptables的参考指南
我想应该有一下命令:
iptables -t filter -F INPUT
iptables -t filter -F OUTPUT
iptables -t filter -P INPUT DROP
iptables -t filter -P OUTPUT DROP
iptables -t filter -A -p INPUT -p tcp -s 0/0 --dport 23 -j ACCEPT
iptables -t filter -A -p OUTPUT -p tcp -d 0/0 --sport 23 -j ACCEPT
慎重执行以上命令
因为它不允许其他的数据通过防火墙
或者干脆关掉防火墙
chkconfig --level 35 iptables off
service iptables stop
回复

使用道具 举报

发表于 2004-8-8 10:06:59 | 显示全部楼层
修改/etc/hosts.allow
在后面加上
ALL: ALL: ALLOW
这样应该行了,注意有空格。
具体看一看manpage
回复

使用道具 举报

发表于 2004-8-24 10:01:03 | 显示全部楼层
[quote:96ebefb535="qftcpa"]Linux中如何开启Telnet服务(我用的是turbolinux dataserver 7)
在服务器上以root登录后 #后输入 startx  回车
打开第一个主菜单(大车轮图标),点编辑器—高级编辑器,出现编辑器窗口后:
第一步:点打开,位置处输入/etc/xinetd.d/telnet 回车 将该文件中的disable = yes 修改为 disable = no   保存
第二步:点打开,位置处输入/etc/hosts.allow  回车,打开该文件后,找到#in.telnetd : sample.****** ,将前面的#删除掉 ,并将后面的: sample.**修改为:ALL  在最后加一行sshd:ALL  保存 退出 ,然后点主菜单中的注销,退出,回到#号
第三步: #后输入 service  xinetd  restart 回车

看是否开启这二项服务
root登录,#后输入setup 回车 ,选第七项菜单(系统服务管理system services management) 回车,找到并选中telnet 和sshd(在它上面按空格键即可选中),然后用tab键使光标走到OK上,然后回车,退出,用reboot命令重启服务器后。

telnet 客户端windows中有
开始 运行  telnet
putty  可到http://www.zcpg.com.cn/download/putty.exe下载

我也是新手,真想交几个好手朋友)[/quote]



这样我的TELNET也可以用了,但有个问题,在非本机上登录的话,不能用ROOT用户,说是密码错误。如换成一般用户就成功登录。
不知道何故
回复

使用道具 举报

发表于 2004-8-27 15:22:50 | 显示全部楼层
redhat-config-securitylevel
试下
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-19 19:16 , Processed in 0.053470 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

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