Skip to content

Win32-OpenSSH fails to use network mapped directory #2170

Open
@holzert

Description

@holzert

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions