Configuring winscp to use a proxy with ansible

Advertisement

vanderkerkoff
Joined:
Posts:
2
Location:
Wales

Configuring winscp to use a proxy with ansible

Hi there

We're currently configuring some Windows 2019 servers with ansible.

I currently need to tell WinSCP to use a proxy to gain external access, and was hoping there's a way to accomplish this using ansible so I can automate it.

Has anyone accomplished this in the past, or know a way to do this?

I'm thinking maybe run some powershell scripts on the machine once connected with ansible?

Any help or advice greatly appreciated.

V

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Configuring winscp to use a proxy with ansible

I'm not sure what you ask for.

WinSCP supports proxies. You can script WinSCP, both using simple WinSCP scripting or using WinSCP .NET assembly (e.g. from a PowerShell script).
https://winscp.net/eng/docs/guide_automation
https://winscp.net/eng/docs/library

WinSCP GUI can generate templates for both the script and .NET assembly for you:
https://winscp.net/eng/docs/ui_generateurl#script

Reply with quote

vanderkerkoff
Joined:
Posts:
2
Location:
Wales

Re: Configuring winscp to use a proxy with ansible

Hi Martin

Thanks for getting back to me

I'm looking through the links you've supplied, but not sure if they give me what I want.

When you open the GUI, you can enter a proxy server to use in all the communications that winscp uses. I'm looking for a way to enter those proxy details, but with a script, that I can run when I'm configuring the software on the servers automatically.

Does that explain it a bit better?

Thanks again for replying.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Configuring winscp to use a proxy with ansible

vanderkerkoff wrote:

I'm looking for a way to enter those proxy details, but with a script, that I can run when I'm configuring the software on the servers automatically.
And this part of my answer didn't help?
WinSCP GUI can generate templates for both the script and .NET assembly for you:
https://winscp.net/eng/docs/ui_generateurl#script

Reply with quote

Advertisement

You can post new topics in this forum