Hi, I'm trying to configure ssh to get this behaviour: ssh binds on "localhost:60110" and when a local application connect to that port, all the data are forwarded to the "server". The particular fact is that I can't use port forwarding because I don't have any pop3 daemon on the "server". In fact I'm using a pop3 script as user's shell! $ ssh ... user at server +OK list +OK . quit +OK Connection to server closed. When I try by hand everything is ok, but it seems I cannot use ssh to bind a port and simply forward the data. Is this a known OpenSSH limitation ?
On Sat, Mar 26, 2005 at 04:06:37PM +0100, Ed White wrote:> ssh binds on "localhost:60110" and when a local application connect > to that port, all the data are forwarded to the "server". The > particular fact is that I can't use port forwarding because I don't > have any pop3 daemon on the "server". In fact I'm using a pop3 > script as user's shell! > > When I try by hand everything is ok, but it seems I cannot use ssh > to bind a port and simply forward the data. Is this a known OpenSSH > limitation ?I guess you could say that, but I would rather say that you're trying to use a tool for a task that it wasn't designed to perform. You could try running faucet[1] with the script on the server to turn it into a TCP service and then use regular port forwarding to reach it. //Peter [1] http://web.purplefrog.com/~thoth/netpipes/netpipes.html
> I guess you could say that, but I would rather say that you're trying > to use a tool for a task that it wasn't designed to perform.I don't think so. I think OpenSSH should provide a simple feature like this one. A simple crypted proxy. ssh binds to localhost 31337 and when you connect to that port, it starts a connection to your server sshd. That's it. So you could do this $ telnet localhost 31337 instead of $ ssh server> You could try running faucet[1] with the script on the server to turn > it into a TCP service and then use regular port forwarding to reach it.Thanks, faucet did the trick. Howvere I'm using in on the client side, not on the server.