halcyon wrote
> I have been running into this issue. In my case it is an incompatibility
> between libssh2 and openssh (Win32 ). To get around this I downloaded the
> libssh2 code from Github and made the following changes:
> 
> around line 1060 in sftp_open in sftp.c
> 
> change:
> 
>         attrs.permissions = mode |
>             (open_file ? LIBSSH2_SFTP_ATTR_PFILETYPE_FILE :
>              LIBSSH2_SFTP_ATTR_PFILETYPE_DIR);
> 
> to 
>         attrs.permissions = mode;

Hmmm...so looks like it's something specific to how Microsoft has
implemented OpenSSH for Win32, since it works fine against Linux SSH servers
and against at least the SolarWindows SFTP/SCP server.  I'm not sure the
above change is a good long-term fix, but it does help to narrow down the
issue and may point to what's actually going on here.  I'm tempted to open
up an issue on the Github page for that OpenSSH implementation with this
information, as I think there's probably something Microsoft is not doing
quite right in their implementation that is causing this.

Thank you for the info, halcyon!

-Nick



--
Sent from: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/

Reply via email to