embedding sshd into a server

From: thablobulus (thablobulus_at_yahoo.com)
Date: 09/14/05


Date: Tue, 13 Sep 2005 20:16:00 -0500

I have a server that, among other things, listens on a socket where
admins can connect to issue commands. Right now it listens on a
configurable IP/port with no authentication. I'd like to secure it.

What I envisioned is, have the server fork and exec an sshd process that
listens on a special port (so it doesn't conflict with the system sshd).

When an ssh clients connects to the special sshd port and authenticates
successfully, here is what I want to happen: instead of opening a shell
or executing a command specified by the client, I want sshd to turn into
a dumb proxy that connects its own stdin/stdout to the client socket.
(The stdin/stdout are already set up as pipes to the parent server process).

Is something like this possible?



Relevant Pages

  • Slow sftp transfer speed vs ftp
    ... with Solaris 9) I am transfering at 300 kb/sec. ... on both client and server. ... # The sshd shipped in this release of Solaris has support for major versions ... # Banner to be printed before authentication starts. ...
    (SunManagers)
  • Re: ssh_exchange_identification uClinux problem
    ... By default sshd does not let root login into a server. ... Connection closed by foreign host. ... inetd started sshd or logged an error. ...
    (comp.security.ssh)
  • OpenSSH 3.6.1p2 Inoperability Issue
    ... I am running a Linux Debian server at home, ... sshd will not accept connections. ... passwords, even if it is correct, is just says access denied. ... # Kerberos TGT Passing only works with the AFS kaserver ...
    (SSH)
  • Re: Forwarding Web server requests to local machine
    ... The problem is that ssh listens on all IPs that are on the same network ... listenying to port 80, so ssh fails to listen on port 80. ... ML> connected by a remote server that I do not control (actually ... ML> thought of using ssh to forward port 80 connections to that remote ...
    (comp.security.ssh)
  • Re: ssh going zombie
    ... on the server kill the ssh server then restart it with the -d flag to put ... it into debug mode. ... and the ssh process hogs the processor on the server. ... subprocess is removed from the sshd config file the a sub sshd process ...
    (SSH)