SUPPORT > SECUREFX > COMMAND-LINE TOOL FAQ
Send us a question or comment

<< Previous
Next >>

How can I pass a password in when using URLs as the source and destination for a transfer?

Passwords can be passed in to Aftpcl.exe or Sfxcl.exe directly.

Download from remote host:

SFXCL sftp://[<user>[:<password>]@]<host address>[:<port>]/<source path> <destination path>

Upload to remote host:

SFXCL <source path> sftp://[<user>[:<password>]@]<host address>[:<port>]/<destination path>

So for instance, the following would be a valid command line:

SFXCL sftp://username:password@someplace.net/pub c:\temp

If the password has to contain the "@" character (for example, when you are logging on as anonymous) you must enter it as the HEX equivalent (%40) or else AFTPCL/SFXCL will not accept it:

AFTPCL ftp://anonymous:guest%40domain.com@ftp.vandyke.com/pub/crt/ntcrt342.exe c:\temp

<< Previous
Next >>

1.  Read or download one of our secure solutions white papers. 2.  Download a free
30-day evaluation copy of our products.
3.  Let us help define the right Secure Shell solution for your company. 4.  Subscribe to our monthly newsletter for tips, solutions ideas, and product news.