Re: Using tcpsvd for a remote shell

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On Mon, Jul 26, 2004 at 07:57:50PM +0200, Erich Schubert wrote:
> > What do i need to do to use tcpsvd to create a proper telnetd
> > replacement? With sslio it works except for the sh thinking that i'm
> > non-interactive even when i give the -i option, and not yet having a
> > "login" inbetween.
> > Any hints, what do i need to do for this to work properly?
> > (Do i need to use a pty? what is the best way to create such?)
> 
> FYI:
> I managed to strip down a telnetd (from busybox) so i get a working
> "telnetd" using tcpd, and a ssl-encrypted telnet using "telnet+stunnel"
> at the client side and "tcpsvd+sslio+my-app" as server.
> The code is still quite ugly and not yet stripped down enough.
> (contains a lot of support for other unices that probably won't work...)

Well done.  What I would have suggested is to try to get dropbear
working in service program mode (inetd mode), if not yet done.  I think
it uses fork() only once when run under tcpsvd, and maybe you can hack
it similar to sslio to make it work.

Regards, Gerrit.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.