免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3389 | 回复: 0
打印 上一主题 下一主题

cygwin telnet 自己不成功 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-18 01:19 |只看该作者 |倒序浏览
xinetd已经启动,FTP自己没有问题,但telnet 自己却提示如下:
$ telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

CYGWIN_NT-5.1 1.7.8(0.236/5/3) (localhost) (tty0)

login: Connection closed by foreign host.

/etc/xinetd.d/telnet
$ more telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        disable         = no
        flags           = REUSE NAMEINARGS IPv4
        socket_type     = stream
        wait            = no
        server          = /usr/sbin/telnetd
        server_args     = /usr/sbin/telnetd
        log_on_failure  += USERID
        user            = hui
}
==================
启动xinetd debug模式:
#xinetd -d
Service configuration: telnet
        id = telnet
        flags = REUSE NAMEINARGS IPv4
        socket_type = stream
        Protocol (name,number) = (tcp,6)
        port = 23
        wait = no
        user = 129041
        Groups = yes
        umask = 2
        PER_SOURCE = 10
        Bind = All addresses.
        Server = /usr/sbin/telnetd
        Server argv = /usr/sbin/telnetd
        Only from: All sites
        No access: No blocked sites
        Logging to syslog. Facility = daemon, level = info
        Log_on_success flags = HOST DURATION EXIT PID
        Log_on_failure flags = HOST USERID

11/4/18@00:51:57: DEBUG: 6288 {cnf_start_services} Started service: ftp
11/4/18@00:51:57: DEBUG: 6288 {cnf_start_services} Started service: telnet
11/4/18@00:51:57: DEBUG: 6288 {cnf_start_services} mask_max = 7, services_starte
d = 2
11/4/18@00:51:57: NOTICE: 6288 {main} 2.3.14 started with libwrap options compil
ed in.
11/4/18@00:51:57: NOTICE: 6288 {main} Started working: 2 available services
11/4/18@00:51:57: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:52:11: DEBUG: 6288 {main_loop} select returned 1
11/4/18@00:52:11: DEBUG: 6288 {server_start} Starting service ftp
11/4/18@00:52:11: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:52:13: DEBUG: 336 {exec_server} duping 8
11/4/18@00:52:31: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:52:31: DEBUG: 6288 {main_loop} select returned 1
11/4/18@00:52:31: DEBUG: 6288 {check_pipe} Got signal 20 (Child exited)
11/4/18@00:52:31: DEBUG: 6288 {child_exit} waitpid returned = 336
11/4/18@00:52:31: DEBUG: 6288 {server_end} ftp server 336 exited
11/4/18@00:52:31: DEBUG: 6288 {svc_postmortem} Checking log size of ftp service
11/4/18@00:52:31: INFO: 6288 {conn_free} freeing connection
11/4/18@00:52:31: DEBUG: 6288 {child_exit} waitpid returned = -1
11/4/18@00:52:31: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:52:42: DEBUG: 6288 {main_loop} select returned 1
11/4/18@00:52:42: DEBUG: 6288 {server_start} Starting service telnet
11/4/18@00:52:42: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:52:42: DEBUG: 6672 {exec_server} duping 8
11/4/18@00:52:43: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:52:43: DEBUG: 6288 {main_loop} select returned 1
11/4/18@00:52:43: DEBUG: 6288 {check_pipe} Got signal 20 (Child exited)
11/4/18@00:52:43: DEBUG: 6288 {child_exit} waitpid returned = 6672
11/4/18@00:52:43: DEBUG: 6288 {server_end} telnet server 6672 exited
11/4/18@00:52:43: INFO: 6288 {conn_free} freeing connection
11/4/18@00:52:43: DEBUG: 6288 {child_exit} waitpid returned = -1
11/4/18@00:52:43: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:53:02: DEBUG: 6288 {main_loop} select returned 1
11/4/18@00:53:02: DEBUG: 6288 {server_start} Starting service telnet
11/4/18@00:53:02: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:53:02: DEBUG: 6956 {exec_server} duping 8
11/4/18@00:53:03: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@00:53:03: DEBUG: 6288 {main_loop} select returned 1
11/4/18@00:53:03: DEBUG: 6288 {check_pipe} Got signal 20 (Child exited)
11/4/18@00:53:03: DEBUG: 6288 {child_exit} waitpid returned = 6956
11/4/18@00:53:03: DEBUG: 6288 {server_end} telnet server 6956 exited
11/4/18@00:53:03: INFO: 6288 {conn_free} freeing connection
11/4/18@00:53:03: DEBUG: 6288 {child_exit} waitpid returned = -1
11/4/18@00:53:03: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@01:02:27: DEBUG: 6288 {main_loop} select returned 1
11/4/18@01:02:27: DEBUG: 6288 {server_start} Starting service telnet
11/4/18@01:02:27: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@01:02:27: DEBUG: 7160 {exec_server} duping 8
11/4/18@01:02:28: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@01:02:28: DEBUG: 6288 {main_loop} select returned 1
11/4/18@01:02:28: DEBUG: 6288 {check_pipe} Got signal 20 (Child exited)
11/4/18@01:02:28: DEBUG: 6288 {child_exit} waitpid returned = 7160
11/4/18@01:02:28: DEBUG: 6288 {server_end} telnet server 7160 exited
11/4/18@01:02:28: INFO: 6288 {conn_free} freeing connection
11/4/18@01:02:28: DEBUG: 6288 {child_exit} waitpid returned = -1
11/4/18@01:02:28: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@01:04:58: DEBUG: 6288 {main_loop} select returned 1
11/4/18@01:04:58: DEBUG: 6288 {server_start} Starting service telnet
11/4/18@01:04:58: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@01:04:58: DEBUG: 7708 {exec_server} duping 8
11/4/18@01:04:59: DEBUG: 6288 {main_loop} active_services = 2
11/4/18@01:04:59: DEBUG: 6288 {main_loop} select returned 1
11/4/18@01:04:59: DEBUG: 6288 {check_pipe} Got signal 20 (Child exited)
11/4/18@01:04:59: DEBUG: 6288 {child_exit} waitpid returned = 7708
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP