Win32-OpenSSH
Win32-OpenSSH copied to clipboard
Win32-OpenSSH fails to use network mapped directory
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest version
- [X] 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
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.
https://github.com/PowerShell/Win32-OpenSSH/issues/1734 https://github.com/PowerShell/Win32-OpenSSH/issues/1561