Thanks for that. I have managed to get this working.
Now i have another problem. I have used it on a production server now I get an error: Transfer channel can't be opened. Reason: No connection could be made because the target machine actively refused it.

If I use WinSCP directly on that same server to upload a file it works as expected, but when I run the same putfile thround the code I get the above error. Do you know what could be wrong? Thanks a lot

martin

Re: Proxy settings

2016-08-10

The easiest solution is to configure the session in WinSCP GUI and have WinSCP generate the code for you.