User with Character @ in SFTP account username and automation

Advertisement

jpantera
Joined:
Posts:
20
Location:
Los Angeles, CA

User with Character @ in SFTP account username and automation

Hello Martin, WinSCP Support,

Have a new file transfer to setup, and I use the automation script file method, building the
open sftp://<username>@<remote address>:<Port> -privatekey=<File> (Options)
connection string on the fly, automated.

This new file transfer, has the character @ in the username, so this statement will say something like
open sftp://joe@pantera@<remote address>:<Port> -privatekey=<File> (Options)
Do I need to add logic to escape the first @ character? Is that needed, or what is the recommendation?

Thanks,
Joe P.

Reply with quote

Advertisement

jpantera
Joined:
Posts:
20
Location:
Los Angeles, CA

Thank you Martin!

Does the -username work with the open sftp://<Site> command in some way?

I'm getting error:
Unknown switch 'username'.
(But substituting %%40" for @ seems to work).

- Joe P.

Reply with quote

martin
Site Admin
martin avatar

You are possibly using old version of WinSCP that does not support -username.
If you have the latest version and it still does not work, please post your code.

Reply with quote

Advertisement

You can post new topics in this forum