Re: [Tutor] ssh script

2008-01-24 Thread Eric Walstad
Hi Washake, Here's a sample I just whipped up from the example I found here: Note that I had to tweak the 'tunnel_command' line a bit as it was missing the conversion type. This sets

Re: [Tutor] ssh script

2008-01-24 Thread washakie
Thanks everyone these seem like promising directions to go... Eric, any chance you could share your 'similar' code? The problem it seems with paramiko is that it has little 'newbie' documentation, and I'm not clear how to set up the reverse port forwarding on it. Thus I may need to use the pexpect

Re: [Tutor] ssh script

2008-01-23 Thread Eric Walstad
I've done similar with pexpect: http://pexpect.sourceforge.net/ washakie wrote: > Hello, I'm trying to write a script which will allow me to create a reverse > tunnel from a remote machine using SSH -R > > I know the reverse tunnel script works on it's own run from the shell, but I > don't want

Re: [Tutor] ssh script

2008-01-23 Thread Eric Brunson
washakie wrote: > Hello, I'm trying to write a script which will allow me to create a reverse > tunnel from a remote machine using SSH -R > > I know the reverse tunnel script works on it's own run from the shell, but I > don't want to leave it open always... does anyone have any ideas on how to > m

Re: [Tutor] ssh script

2008-01-23 Thread jay
Have you looked into Paramiko? http://www.lag.net/paramiko/ Its a port of the ssh2 protocol for python. It might be easier to do this using that that subprocess calls. Paramiko is quite nice, I use it a lot at work. Just a suggestion J On Jan 23, 2008 3:42 AM, washakie <[EMAIL PROTECTED]

[Tutor] ssh script

2008-01-23 Thread washakie
Hello, I'm trying to write a script which will allow me to create a reverse tunnel from a remote machine using SSH -R I know the reverse tunnel script works on it's own run from the shell, but I don't want to leave it open always... does anyone have any ideas on how to make this work? There seems