On 11/15/12 23:10, Manolis Tzanidakis wrote:
Hello all, I want to send the '~C' escape to ssh followed by ie. '-L 1024:localhost:1024' from the active ssh connection's shell, non-interactively from a script. Is it possible? Or is there a better way to accomplish this?
Without judging the reason, `ssh -t` might be a good start. /Alexander
I'm trying to build an idiot-proof menu for non tech savvy users to allow them create a couple of tunnels to local services (on different ports), on demand. The script needs to run a bunch of other stuff after adding the tunnels, so I can't just tell them to pass '-L etc.' to the client..