cygwin telnet 自己不成功
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论