#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
Hi vb.green,
I would suggest having a look at the SFXCL tip at the following location: http://www.vandyke.com/support/tips/sfxcl_auto.htmlIf 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? |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
Hi vb.green,
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 [...]] destinationHere 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@hostIf you would like to test the newer version of SecureFX please send an email message to support@vandyke.com with a subject of Attn: Todd - Forum thread #11226. Does this help you move forward? |
![]() |
Tags |
sftp , sfxcl /move |
Thread Tools | |
Display Modes | Rate This Thread |
|
|