Topic "Use SFTP tunneling in WINSCP script."

Author Message
Ashish Singh

Guest


Hi Team,

I am working on a SFTP script using WINSCP which uploads files from one server to other. Everything is working fine but my main motive is to setup a tunnel between two servers for secure file transfer. As you can see in the below log statements :

. 2017-09-18 07:38:01.051 Session name: ilse_prod_eu@10.60.14.154 (Ad-Hoc site)
. 2017-09-18 07:38:01.051 Host name: 10.60.14.154 (Port: 22)
. 2017-09-18 07:38:01.051 User name: ilse_prod_eu (Password: Yes, Key file: No)
. 2017-09-18 07:38:01.051 Tunnel: No
. 2017-09-18 07:38:01.051 Transfer Protocol: SFTP
. 2017-09-18 07:38:01.051 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2017-09-18 07:38:01.051 Proxy: none
. 2017-09-18 07:38:01.051 Send buffer: 262144
. 2017-09-18 07:38:01.051 SSH protocol version: 2; Compression: No
. 2017-09-18 07:38:01.051 Bypass authentication: No

the Tunnel option is set to No.

Please help me how to use tunnel option in winscp script without using the GUI option.

Thanks in advance.
Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Setup and test the tunnel in GUI.
And than have the GUI generate a script template for you:
https://winscp.net/eng/docs/ui_generateurl#script
Ashish Singh

Guest


Hi Team,
Thanks for the quick reply, but I was following your solution and unable to find "Generate Transfer Code" windo or any Script tab. I have WinScp version 5.5.3(Build 4214) and for some reasons I can't update to latest.

Please provide me the solution for this version.

Thanks in advance Smile
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Ashish Singh wrote:
for some reasons I can't update to latest.

For what reasons?
Even if you cannot upgrade your production copy of WinSCP, you can still use a portable version of the latest release just to generate the code. Though it can happen that the generated code won't be 100% compatible with your old version.
But we do not support old versions of WinSCP. You must be using the latest version, for your own security.
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License