|
| From: | Aidan Leuck |
| Subject: | RE: [PATCH v6 0/2] Implement SSH commands in QEMU GA for Windows |
| Date: | Mon, 22 Apr 2024 18:20:20 +0000 |
|
Hi Konstantin, Thank you for taking the time to look over the patch and test it. I do expect this to work when installing OpenSSH by Windows features. I have been testing my implementation on Windows 11 which uses a newer version of OpenSSH server than
the one shipped with Windows Server 2022. I was able to get a hold of a Windows Server VM and I was able to reproduce what you are describing. I will have a patch coming out shortly with a fix for the issue. I tested the new patch on both Windows Server 2022
(installed from Windows Features) Windows 11 (Installed From Windows Features) and the latest beta release from OpenSSH on Github. Everything appears to be working now. Let me know if you are still running into issues. Aidan Leuck From: Konstantin Kostiuk <kkostiuk@redhat.com>
Hi Aidan, I tried these patches with OpenSSH Server installed from Windows Features and public key authorization does not work. Guest OS Windows Server 2022. Do you expect to use OpenSSH from Windows Features or not? As OpenSSH Server is a build feature for Server 2022 and new versions of Windows 10/11, I expect that patch should work with it too. Also from MSDN
https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui [learn.microsoft.com] ``` If you downloaded the OpenSSH beta from the GitHub repo at
PowerShell/Win32-OpenSSH [github.com], follow the instructions listed there, not the ones in this article ``` So, why we should look at beta version behavior while MS provides a stable one from Features? I debug the problem and the reason for ignoring SSH keys is the permissions of administrators_authorized_keys. SSH server does not allow S-1-5-11 and S-1-1-0 permission. 4384 2024-04-22 01:19:57.763 debug1: trying public key file __PROGRAMDATA__/ssh/administrators_authorized_keys I attached 2 screenshots of permissions. The first one with permission that file has after
guest-ssh-add-authorized-keys command and the second one with proper permissions to make the SSH server happy.
Best Regards, Konstantin Kostiuk. On Fri, Mar 29, 2024 at 5:32 PM <aidan_leuck@selinc.com> wrote:
|
| [Prev in Thread] | Current Thread | [Next in Thread] |