Use SFTP tunneling in WINSCP script.
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.
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.