Open and close your SSH tunnel using plink

A) Using .bat files:
1) openSSHTunnel.bat:
“D:\plink.exe” user@server -pw password -ssh -N -C -v -L 3306:127.0.0.1:3306
2) killSSHTunnel.bat:
taskkill /F /IM plink.exe
B) Using Talend Open Studio 4.2:
1) tSystem1:
“cmd /c \”D:\\plink.exe\” user@server -pw password -ssh -N -C -v -L 3306:127.0.0.1:3306″
2) tSystem2:
“cmd /c taskkill /F /IM plink.exe”
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: