Topic "Scripting: session settings for proxy"

Author Message
mondi

Guest


Hello!
I have a problem to connect to a server over proxy.
How can i transfer the settings from the GUI for my SFTP connection over Proxy?
so i call the connection in the file.txt:

open user:password@host

This is a cut from my server.ini:

[Sessions\user:password@host]
HostName=host
UserName=user
ProxyHost=proxyhost
ProxyPort=1080
Proxy=SOCKS4


How can i set the Proxy-type to SOCKS4 in my script? Could it be the reason because i get the "connection timeout".
I can connect over GUI without any problem.

Thank you in advance
mondi
mondi

Guest


[Sessions\user:password@host]
HostName=host
UserName=user
ProxyHost=proxyhost
ProxyPort=1080
ProxyMethod=1

How can i set the Proxy-type to SOCKS4 in my script? Could it be the reason because i get the "connection timeout".
I can connect over GUI without any problem.

i've found the answer:

ProxyMethod=1
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
For more details, refer to FAQ.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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