Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-09-2013, 09:44 PM
vb.green vb.green is offline
Registered User
 
Join Date: Aug 2013
Posts: 4
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.
Reply With Quote
  #2  
Old 10-10-2013, 08:37 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
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.html
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?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 10-10-2013, 12:27 PM
vb.green vb.green is offline
Registered User
 
Join Date: Aug 2013
Posts: 4
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
Reply With Quote
  #4  
Old 10-10-2013, 01:00 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
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 [...]] 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 support@vandyke.com with a subject of Attn: Todd - Forum thread #11226.

Does this help you move forward?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
Reply

Tags
sftp , sfxcl /move


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:59 AM.