Skip to content

Win32-OpenSSH fails to use network mapped directory #2170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
holzert opened this issue Oct 30, 2023 · 1 comment
Open
3 tasks done

Win32-OpenSSH fails to use network mapped directory #2170

holzert opened this issue Oct 30, 2023 · 1 comment

Comments

@holzert
Copy link

holzert commented Oct 30, 2023

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Running OpenSSH on Windows Server 2016. Using Renci.SSHNet as sftp client. Trying to use Renci SSHNet SFTP to transfer files to a directory share on the OpenSSH server.
ChrootDirectory /FileDrop

doesn't work.
Nor does //FileDrop
Nor does /
and then using SFTP to change to /FileDrop or //FileDrop

How to use a mapped network directory e.g. c:\AllDroppedFiles shared as /FileDrop ? OpenSSH service will not even start when ChrootDirectory in sshd_config file is set to /FileDrop or //FileDrop etc
Only paths I can get to work seem to be true paths on a drive e.g. c:\AllDroppedFiles will work.

Expected behavior

shared network directory works e.g. on OpenSSH server user has permissions to network share

Actual behavior

No such file error - cannot drop to network shared directory

Error details

No such file

Environment data

9OpenSSH_9.4p1 for Windows

Version

OpenSSH_9.4p1 for Windows

Visuals

No response

@maertendMSFT
Copy link
Collaborator

This is because you are trying to access a file share, there are currently issues with accessing and authenticating to a file share over ssh.

#1734
#1561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants