Advertisement

03.27.2008 at 09:08AM PDT, ID: 23274581
[x]
Attachment Details

Getting/Downloading a file from an SFTP server

Asked by aashpatel in Perl Programming Language, Unix Systems Programming, Shell Scripting

Tags: Perl Bash FTP Unix

I need some assistance in getting a file from an sftp server. I get files from various different servers and I use a variety of "get" methods for retrieving the files. I have successfully been able to use:

cURL: curl -u $FtpUser:$FtpPassword $ClientFtpSite/$file -o $file
ncftpget: ncftpget -V ftp://username:password@ftpurl/filename.txt

I'm having a lot of issues trying to retrieve files from an SFTP (not FTPS) server. I tried the above but to no avail. I tried researching for other methods and came across Net::SFTP. I research and tried using this method but there seems to be a bug in this protocol pertaining to some BigInt Math libraries. I also tried using Net::SFTP:Foreign which resolves the BigInt Math libray issue but later found out that it does not support username:password authentication.

Is there ANYway to retrieve files from an sftp server programatically? Can someone please assist me?Start Free Trial
[+][-]03.27.2008 at 01:51PM PDT, ID: 21225637

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 03:02PM PDT, ID: 21226224

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 06:03PM PDT, ID: 21227172

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Unix Systems Programming, Shell Scripting
Tags: Perl Bash FTP Unix
Sign Up Now!
Solution Provided By: Tintin
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.27.2008 at 08:36PM PDT, ID: 21227831

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.28.2008 at 06:40AM PDT, ID: 21230258

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 07:57AM PDT, ID: 21230978

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.29.2008 at 07:02PM PDT, ID: 21239196

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 06:52AM PDT, ID: 21420656

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628