Run script before conneting to server

[expired user #10678]'s profile image [expired user #10678] posted 7 years ago in Feature discussion Permalink

Hello guys,

Is there option how to run any script (bash) before connection to server? My case: I have remote server and before connecting I must run manually in terminal this command: ssh REMOTESERVER -L3307:localhost:3306. In the Advanced tab is option: Startup script but this option run sql after connect. I need run bash before connecting.

Xoor

ansgar's profile image ansgar posted 7 years ago Permalink

No, there is no something like "run shell script".

You could select "MySQL (SSH Tunnel)" as network type in the session settings tab. Then, you can define your remote host, ssh port, password etc. on the "SSH tunnel" tab. For that you will need to download plink.exe from the putty webpage.

Please login to leave a reply, or register at first.