Dear Philipp,
Thanks for your suggestion. I enabled to support standalone telnetd in busybox and add "-i" in inetd.conf as:

telnet stream tcp nowait root /usr/sbin/telnetd telnetd -i
or even

telnet stream tcp nowait root /usr/sbin/telnetd telnetd -i -l /bin/ash

When I telnet the board from a PC, it shows:
# telnet 192.168.0.4 (board IP)
Trying 192.168.0.4...
connected to 192.168.0.4.
Escape character is '^]'

Then the cursor stops and there is no login interface. If I kill the "telnetd -i" process from the board, then the following part shows as:
Connection closed by foreign host.

It is still not correct. But it seems that the board could react the telnet command from outside. How can it show the login interface?

Thanks for your telling.

BR
Ming



From: Philipp Wehrheim <[EMAIL PROTECTED]>
To: Ming Liu <[EMAIL PROTECTED]>
Subject: Re: inetd and telnetd problem
Date: Thu, 18 Oct 2007 17:38:38 +0200

Hey,

Am Donnerstag, den 18.10.2007, 15:12 +0000 schrieb Ming Liu:
> Dear all,
> I met a problem on inted and telnetd. When I boot the linux system and
> inted looks running there. However it does not provide the connection
for
> "telnet" or "http" from other clients. For example if I telnet from a
PC to
> my board, it shows:
>
> # telnet 192.168.0.4 (board IP)
> Trying 192.168.0.4...
> connected to 192.168.0.4.
> Escape character is '^]'
> connection closed by foreign host.
>
> My board is ppc405 cpu on Xilinx ML403 board. In the /etc/service,
there
> are such lines
>
> telnet 23/tcp
> ...
> www    80/tcp    http
> www    80/udp
>
> and in /etc/inetd.conf, there are
>
> telnet stream tcp nowait root /usr/sbin/telnetd telnetd
> http stream tcp nowait www /usr/sbin/httpd httpd -h /home/www
>
> When I telnet from a PC, it shows "connection closed by foreign host".
And
> if I http my board with a browser, it also cannot connect to host
> 192.168.0.4. For httpd, if I run it independently, the browser could
> connect the host successfully and get the webpage. However for telnetd,
it
> doesn't work if I run it seperately.

Did you enable:
���[*]   Support standalone telnetd (not inetd only) ???

if you did add a -i to the inetd.conf and try again

>
> I have tried both busybox-1.7.2 and 1.2.0 versions, the results are the
> same. What's the problem? I will appreciate so much if you can give me
some
> hint. Thanks a lot.
>
> Best Regards
> Ming
>
> _________________________________________________________________
> 涓������虹��������杩�琛�浜ゆ��锛�璇蜂娇��� MSN Messenger:
http://messenger.msn.com/cn
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox


_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to