PowerShell / PowerShell/Win32-OpenSSH
Folder path restriction issues
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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