Scripting: session settings for proxy

Advertisement

mondi
Guest

Scripting: session settings for proxy

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

Reply with quote

mondi
Guest

found!

[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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

Re: Scripting: session settings for proxy

For more details, refer to FAQ.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum