Topic "Password Rules for SFTP Script?"

Author Message
tlockhart
[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>@255.255.255.255

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?
TimU
[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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please read documentation:
http://winscp.net/eng/docs/session_url
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License