CURL - Help


Shawn Stone
 

I have been using CURL to SFTP files to and from servers for several years now, but today I am stumped.  We are to start using a new vendor (Availity) to transmit 837 claims at the end of this month.
I create this .bat in my Magic Application:  This is supposed to read the folder ReceiveFiles on the remote system, instead I get the error messages posted below.
"C:\shawn\curl\curl-7.55.1-win64-mingw\bin\"curl.exe -l -v --insecure sftp://UserName:Password@...:9922/ReceiveFiles/ --pass  "ssh-dss 1024" -o C:\catalyst\availity\availityfiles.txt -v  --trace-ascii C:\catalyst\availity\READTRACE.text

Results in the trace file:

== Info:   Trying 199.116.187.78...
== Info: TCP_NODELAY set
== Info: Connected to qa-ftp.availity.com (199.116.187.78) port 9922 (#0)
== Info: SSH MD5 fingerprint: ec25472c48aa7ec0e3449f22f3e2e0dd
== Info: SSH authentication methods available: publickey,password,keyboard-interactive
== Info: Using SSH private key file ''
== Info: SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file
== Info: Failure connecting to agent
== Info: Authentication failure
== Info: Closing connection 0

Any help would be greatly appreciated, and yes I need to come to the Brown Bag in NOLA to learn more.
TIA


sherman levine
 

Shawn,
Might this be relevant?
Sherm


Latest curl is 7.87 (at least that's the one which came with my computer)

You might also try just sftp independent of curl.


On 1/4/2023 11:11 AM, Shawn Stone wrote:

I have been using CURL to SFTP files to and from servers for several years now, but today I am stumped.  We are to start using a new vendor (Availity) to transmit 837 claims at the end of this month.
I create this .bat in my Magic Application:  This is supposed to read the folder ReceiveFiles on the remote system, instead I get the error messages posted below.
"C:\shawn\curl\curl-7.55.1-win64-mingw\bin\"curl.exe -l -v --insecure sftp://UserName:Password@...:9922/ReceiveFiles/ --pass  "ssh-dss 1024" -o C:\catalyst\availity\availityfiles.txt -v  --trace-ascii C:\catalyst\availity\READTRACE.text

Results in the trace file:

== Info:   Trying 199.116.187.78...
== Info: TCP_NODELAY set
== Info: Connected to qa-ftp.availity.com (199.116.187.78) port 9922 (#0)
== Info: SSH MD5 fingerprint: ec25472c48aa7ec0e3449f22f3e2e0dd
== Info: SSH authentication methods available: publickey,password,keyboard-interactive
== Info: Using SSH private key file ''
== Info: SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file
== Info: Failure connecting to agent
== Info: Authentication failure
== Info: Closing connection 0

Any help would be greatly appreciated, and yes I need to come to the Brown Bag in NOLA to learn more.
TIA



Shawn Stone
 

Thanks Sherm, let me try that.  I have also reached out to tech support for this vendor to see if they can help me.


sherman levine
 

Aha - the "Send me an example of something that works" technique :-)
Filezilla is a reputable command line alternative if that's an option for you.


On 1/11/2023 11:45 AM, Shawn Stone wrote:

Thanks Sherm, let me try that.  I have also reached out to tech support for this vendor to see if they can help me.



Shawn Stone
 

I used to use Filezilla, I had an issue with TLS 1.2 several years ago and decided to use CURL to remedy the TLS issue.