On Sun (18/11/12), Darren Tucker wrote: > On Fri, Nov 16, 2012 at 12:10:19AM +0200, 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? > > If you start ssh with ControlMaster mode enabled you can use "ssh -O > forward" to add forwardings to an established connection, eg: > $ ssh -o ControlMaster=yes -o ControlPath=/tmp/ctl localhost > $ ssh -o ControlMaster=no -o ControlPath=/tmp/ctl -O forward \ > -L 1234:127.0.0.1:22 localhost
I've tested some options (including ControlMaster) with one of the will-be users of this system and I think I should abandon this plan altogether and give me them pre-defined ssh_configs and putty confs instead. Anyway, thanks for your time Darren and Alexander. -- Manolis Tzanidakis http://mtzanidakis.com/ mtzanidakis[at]gmail[dot]com