PowerShell / PowerShell/Win32-OpenSSH

Windows OpenSSH SFTP chroot directory user match not working

Open
#1,941 9 comments 0 reactions 1 assignee View on GitHub

@vthiebaut10 is already working on this.

Since Aug 8, 2022.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

Troubleshooting steps
https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps

Terminal issue? please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH

Please answer the following

5435438Capture

Client OperatingSystem
Windows 10 21H2 Enterprise running winSCP

What is failing
Matcher User w/ Chroot flag:

Match User tyler.lindberg
#AllowTcpForwarding no
ChrootDirectory F:\SFTP-Root\SystemOps
#ForceCommand internal-sftp

Expected output
Land user's matched chroot:

Match User tyler.lindberg
#AllowTcpForwarding no
ChrootDirectory F:\SFTP-Root\SystemOps
#ForceCommand internal-sftp

Actual output

It lands the user in their home directory instead

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.