Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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
vanderkerkoff

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.
vanderkerkoff

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