Can I use public-key authentication with SFXCL?

Yes. The identity file can be specified on the command line using the /I option, or you can configure a named session which uses public-key authentication in SecureFX® for Windows. Then, specify this session on the command line as shown in the examples below.

Download from remote host:

SFXCL /s <session path> <source path> <destination path>

Upload to remote host:

SFXCL <source path> /s <session path> <destination path>

For instance, the following command line would upload all of the files and folders in the "My Documents" folder to the specified server using public-key authentication. This is assuming the session named "SecureWork", which resides in the folder "My Sessions", has been configured to use public key:

SFXCL "C:\My Documents" /s "/My Sessions/SecureWork" /usr/username/mdocs

Note: If the identity file associated with this session requires a passphrase, SFXCL will prompt for it during authentication. If SFXCL must be run in unattended mode, the passphrase can be specified using the /P command-line option, although this is not considered a best security practice.

Was this information helpful?
Yes No

Thank you!
Send your comments and questions to VanDyke Software Support,
or join the discussion in the VanDyke Software Forums.

Can't find the answer you're looking for?
Ask VanDyke Software Support directly
and we will get back to you as soon as possible.


VanDyke Software uses cookies to give you the best online experience. Before continuing to use this site, please confirm that you agree to our use of cookies. Please see our Cookie Usage for details.