Skip to content
Feature Request: SSH Tunnel prior to tunnel connect
Suggestions/comments/criticisms are welcome here
Hi,
I am a very frequent Viscosity user and I really like the software, great work!
The way I operate is to first establish an SSH tunnel with some port forwards to servers within my company domain.
I then use Viscosity to connect to localhost to establish a connection to these ports, it essentially becomes an OpenVPN tunnel inside an SSH tunnel scenario.
Would it be possible to add the option of preceding the actual OpenVPN tunnel establishment with the creation of an SSH tunnel?
I am a very frequent Viscosity user and I really like the software, great work!
The way I operate is to first establish an SSH tunnel with some port forwards to servers within my company domain.
I then use Viscosity to connect to localhost to establish a connection to these ports, it essentially becomes an OpenVPN tunnel inside an SSH tunnel scenario.
Would it be possible to add the option of preceding the actual OpenVPN tunnel establishment with the creation of an SSH tunnel?
Hi hyper,
As you found in this thread, you should be able to create a "Before Connect" script to establish the SSH the tunnel for you. Before Connect scripts are a little different to the Connected/Disconnected scripts, as Viscosity waits for the script to finish before continuing with the connection attempt. This means you shouldn't have any problem creating a script to establish your SSH tunnel: Viscosity will wait until your script is done (and hence your tunnel created) before trying to establish a VPN connection.
You can find some information for working with AppleScripts at:
http://www.thesparklabs.com/support/run ... when_conn/
Cheers,
James
As you found in this thread, you should be able to create a "Before Connect" script to establish the SSH the tunnel for you. Before Connect scripts are a little different to the Connected/Disconnected scripts, as Viscosity waits for the script to finish before continuing with the connection attempt. This means you shouldn't have any problem creating a script to establish your SSH tunnel: Viscosity will wait until your script is done (and hence your tunnel created) before trying to establish a VPN connection.
You can find some information for working with AppleScripts at:
http://www.thesparklabs.com/support/run ... when_conn/
Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
3 posts
Page 1 of 1