Topic "Password Rules for SFTP Script?"

Author Message
[View user's profile]

Joined: 2012-02-01
Posts: 1
WinSCP Version 4.3.5 (Build 1463)
Microsoft Windows 7

I am creating an SFTP script that will connect to an external server. I have been supplied with a userid and password, however the syntax of the connection statment is:

open sftp://<userid>:<password>@

However, I was wondering if the password contains an "@" as in password= f@of@o, will this cause a problem with the command as @ starts the beginning of the IP address. Can anyone advise if it is possible to write a script, which contains an @ in the password?
[View user's profile]

Joined: 2012-01-30
Posts: 25
Location: Sydney
If you can use (or workout how to use) that statement from a regular WinSCP console (run "WinSCP.exe /console"), then there should be no reason you can't use it in a script.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
Please read documentation:

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License