-
Notifications
You must be signed in to change notification settings - Fork 780
ChrootDirectory in sshd_config randomly ignored for Windows server #1544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Kiroha - Please provide the sftp server and SSHD logs with DEBUG3 enabled. |
Hello :) Thanks for reply. Below the log : First attempt => KO Has you can see, randomly the user is l when it's KO and yoda_cor_rpa when it's OK |
This seems to be this issue: See also: I was running into that issue (running v7.7.2.2 on Windows Server 2019 Standard installed via |
Right it seems to be exactly the same. Is there a simple way to update the OpenSSH server installed by the get-windowscapability without breaking the potential futur update made by Microsoft ? |
Disclaimer: I'm not entirely sure how updates work for Windows OpenSSH as an optional feature/capability. That said, I get the distinct feeling that you should NOT manually update the Windows OpenSSH server if you've installed it via the I think the only supported upgrade path for Windows OpenSSH installed as an optional feature/capability would be applying Windows updates. This comment from a dev seems to indirectly imply that updates for the "Windows official releases" of OpenSSH (a.k.a. versions available as optional feature) are distributed via WU/WSUS. Any version of OpenSSH for Windows downloaded from the releases on Github and manually installed would have to be manually updated. For the current LTSC release of Windows Server 2019 Standard it doesn't look like any updates for Windows OpenSSH have been released through WU/WSUS (from what I can see). This also seems to be backed up by this comment from another guy running Windows Server (though he's running 1909 on the SAC instead of LTSC). If this lack of an official update to Windows OpenSSH via WU/WSUS also applies to Windows Server 2019 Datacenter and you absolutely need the new bugfixes, your best bet may be to uninstall the optional feature, install a newer OpenSSH portable release, and just deal with updating it yourself until a newer version of the OpenSSH optional feature comes through the LTSC WU/WSUS pipes. (I'm assuming you're running the LTSC channel because you said you were running "Windows Server 2019 Datacenter" specifically and the docs claim that if you have the year in the name it indicates LTSC and if the year is missing from the name it's SAC.) I would love for someone with more knowledge on the subject to chime in, as I'm not really 100% sure on any of this. |
This issue is fixed in the latest release, 8.1. It will be available in-box in an update later this year. |
same issue, randomly ignored ChrootDirectory |
@Julian-13 - You are not using win32-openssh as your version is 8.2. our latest version is openssh v8.1. |
Hi, Here are the machine details:
|
"OpenSSH for Windows" version
7.7.2.2
Server OperatingSystem
Windows Server 2019 Datacenter
Client OperatingSystem
Windows Server 2019 Datacenter and Debian Linux
What is failing
ChrootDirectory attribute randomly ignored
Expected output
ChrootDirectory apply at each client connection
Actual output
When my sftp client does multiple connect, randomly the ChrootDirectory is not set
The text was updated successfully, but these errors were encountered: