VanDyke Software Forums

VanDyke Software Forums (
-   Scripting (
-   -   FTP Authentication ( 10-09-2013 08:44 PM

FTP Authentication
Hi Guys,

I want to fetch a huge list of files from my UNIX server to windows. The server accepts only sftp protocol.

I have all these file names stored in a csv file and have created a macro in excel that creates a batch file which has the following for each file:

sfxcl sftp://my_user_name:my_pass@host//<my_file>path> C:\<destination_folder>

It seems to be working fine, but the problem is that even after I have provided a password in the sfxcl command the batch file prompts for password while individual download process. Once I provide the password, the file is fetched.

However, I am unable to automate the entire process as it prompts for password for each file(I have over 100 files daily). Please help what I can do to supress the password prompt for each file.

PS: I have secure crt 6.2.

rtb 10-10-2013 07:37 AM


I would suggest having a look at the SFXCL tip at the following location:
If the remote server allows password authentication (it is possible that the server only allows keyboard-interactive authentication), you could work around the issue by adding the "/Password" option to your SFXCL command-line. This allows you to automate password entry.

Another option would be to use a pre-defined session with the password saved.

For automation though, publickey authentication may be your best bet.

Does this help you resolve the issue you are seeing? 10-10-2013 11:27 AM

Thanks for your reply Todd.

Could you please provide the syntax for /Password option of sfxcl. I cant seem to find it in the doc provided.

My server allows only keyboard interactive authentication.Im not sure of public key authentication. Could you provide a guide for the same

rtb 10-10-2013 12:00 PM


You can find SFXCL command-line syntax and options in the SecureFX help or on the command-line by typing "sfxcl".

Here is the syntax from the command-line:
sfxcl [options] source [source [...]] destination
Here is an example of using the "/Password" option, but you will need to use a post 7.1.2 build of SecureFX with keyboard-interactive authentication:
sfxcl /password P4$$w0rd C:\file_to_upload sftp://user@host...
Here is an example for publickey authentication:
sfxcl /I "path/to/privatekey" C:\file_to_upload sftp://user@host
If you would like to test the newer version of SecureFX please send an email message to with a subject of Attn: Todd - Forum thread #11226.

Does this help you move forward?

All times are GMT -6. The time now is 07:29 PM.