2008年(2)
分类: LINUX
2008-10-28 14:26:50
[root@mecc ~]# telnetd
telnetd: getpeername: Socket operation on non-socket
使用telnetd -debug可以启动,当连接过一次tlenetd就自动退出
---需要安装使用inetd/xinetd服务连接器来启动telnetd
The problem may be that you are all trying to start
in.telnetd from the console. But it must be started by inetd/xinetd ! Inetd
receives a socket and then does the following:
Code:
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
dup2(sock, STDIN_FILENO);
dup2(sock, STDOUT_FILENO);
dup2(sock, STDERR_FILENO);