> On 10/16/2020 7:20 AM Michael Loutris <[email protected]> wrote:
> 
> > On 10/14/2020 9:46 AM Dan Fandrich via curl-library 
> > <[email protected]> wrote:
> > 
> > On Wed, Oct 14, 2020 at 09:06:14AM -0500, Michael Loutris wrote:
> > > > On 10/14/2020 12:35 AM Dan Fandrich via curl-library 
> > > > <[email protected]> wrote:
> > > > 
> > > > On Tue, Oct 13, 2020 at 06:42:50PM -0500, Michael Loutris via 
> > > > curl-library wrote:
> > > > > I am trying to securely transfer a file between two windows 10 
> > > > > devices, and I
> > > > > get error 67, "CURLE_LOGIN_DENIED" when calling curl_easy_perform().  
> > > > > All of
> > > > > the curl_easy_setopt() calls return success.
> > > > > 
> > > > > The server has been configured as an SSH server using OpenSSH for 
> > > > > Windows 10
> > > > > and using OpenSSH commands from a Windows command prompt are 
> > > > > successful in
> > > > > transferring files. 
> > > > 
> > > > When you use these commands, does the logging show that authentication 
> > > > is
> > > > performed with username+password, or is it being done with a key? Is 
> > > > the key
> > > > encrypted on disk?
> > > > 
> > > > Dan
> > > > -------------------------------------------------------------------
> > > Logging shows that authentication is done with a non-encrypted key.
> > 
> > Good—that proves the key is working. Next, I'd confirm that there's not a
> > compatibility issue with the ssh backend you're using. Which one is that? 
> > For
> > example, recent OpenSSH has disabled many protocols supported by libssh2 
> > and it
> > sometimes has trouble negotiating a compatible one. Can you connect to the
> > server using the appropriate command-line tool associated with the backend 
> > in
> > use? For example, can you do an sftp download using the examples/sftp 
> > program
> > in libssh2 (using the same library version as your libcurl and changing the
> > keyfile* variables appropriately)?
> > -------------------------------------------------------------------
> 
> I built the sftp_write.c example and it is failing at the key authentication 
> step.
> I spent all day yesterday trying to build libssh2.dll from source in order to 
> debug the precise problem, but my inexperience with setting up m4, autoconf, 
> automake, etc. ended up in failure.
>  
> UPDATE: As I was replying, I double checked the keys and realized that I was 
> trying to authenticate with the new key that I am trying to send, not the 
> default key. 
> That got me much further and now I'm failing at trying to open the file on 
> the server side.
> I know that our admin set up the server to only accept certain permissions, 
> so I'll see if that's an issue.
> 
> -Mike

I went back and see that the libcurl code is already setting the correct 
default key for authentication. 
However, I am confused as to how I specify where to write the data on the 
server.
The information for CURLOPT_URL states that it is for retrieving, so how do I 
specify the write path?
Thank you,
-Mike

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to