PowerShell / PowerShell/Win32-OpenSSH

Folder path restriction issues

Open
#1,702 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

we installed the latest version of OpenSSH. 8.1

but this is showing entire server directories.

in this case, we added the following code in sshd.config file

`ForceCommand internal-sftp
Subsystem sftp sftp-server.exe -d "D:\customerftp"
ChrootDirectory D:\customerftp

PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
AllowUsers sftpuser`

but if we add this code SFTP not connecting

how to properly provide the folder access permission?

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.

Research direction

Start by reviewing the reported sshd.config entries for ForceCommand, Subsystem, and ChrootDirectory on Windows, then reproduce the SFTP connection failure with the shown configuration. Done means identifying the configuration or permission issue that exposes directories and documenting a working folder restriction.

Written by the indexing model from the issue text.

Assessment

Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.