[busybox] suggestion for telnetd server

Joel Coltoff joel at wmi.com
Tue Jun 18 09:28:06 UTC 2002


On Tue, 18 Jun 2002, Doug Edwards wrote:

> dedwards at generic:dedwards-> telnet 192.17.100.193
> Trying 192.17.100.193...
> Connected to 192.17.100.193.
> Escape character is '^]'.
> Connection closed by foreign host.
> dedwards at generic:dedwards->
>
>
> On the ramdisk side, I get this message:
>
> # All network ports in use!
>
> I think it has something to do with my busybox setup not creating the
> proper pseudo-terminals, but I'm not sure if I'm right about this.
>
> Any suggestions?

You don't need ptty-fs or devpts or whatever you want to call
it. What you do need is /dev/ttyp0 and /dev/ptyp0. At least that
is how it worked when I tried it. As I recall that daemon only
supports one telnet session. If that's not a problem for you then
it's a good way to go. The netkit-telnet stuff works with very
little effort. There's one call [tgetent()] to the curses library
that I needed to comment out. You can use devpts if you wish but
this also works without it.

-- 
Joel Coltoff

If I had my life to live again, I'd make the same mistakes, only sooner.
    -- Tallulah Bankhead





More information about the busybox mailing list