Automation issue

Advertisement

rvoyek@gmail.com
Joined:
Posts:
2

Automation issue

I have a saved login that also has the password saved and the port set to 8022. I can go into WinScp manually and log into the SFTP site without issue. However when I try to automate the process and use the command open FTPDICTATIONS@mcf-upgw1 I get log entries showing it is using port 22.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,430
Location:
Prague, Czechia

Re: Automation issue

Your script uses /ini=nul switch, what makes it ignore any global configuration. That's actually the recommended approach:
https://winscp.net/eng/docs/scripting#configuration

But that means that you cannot use a stored site.

Either replace the stored site name in the open command with a full URL. WinSCP GUI can generate it for you:
https://winscp.net/eng/docs/ui_generateurl#script
(recommended)

Or remove the /ini=nul switch (not recommended).

Reply with quote

rvoyek@gmail.com

Re: Automation issue

If I generate the Full URL it includes the password in clear text. I don't really want to store that in a command file. Is there a more secure way to accomplish this?

Reply with quote

Advertisement

You can post new topics in this forum