Open boschkundendienst opened 3 years ago
encounter the same problem : ( guess 'password_auth_token' is not closed in function 'windows_password_auth' of contrib\win32\win32compat\win32_usertoken_utils.c line 841
It looks like HANDLE password_auth_token
populated in windows_password_auth
should be being closed in __posix_spawn_asuser
when it spawns the shell process.
"OpenSSH for Windows" version
7.7.2.2
Server OperatingSystem
Windows Server 2019 Standard
((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)
Client OperatingSystem Windows 10
What is failing
When a connection to the SSH server has been closed, the user profile of the user persistently keeps handles open into the specific users registry files on the server. Even after stopping sshd it is e.g. not possible to delete the users profile until you reboot the server.
To reproduce, create a local user on the server (e.g.
sftp
). Establish an SSH connection to the server using this user. Close the SSH session. Stop SSHD. Try to delete the users profile via Advanced system settings GUI. The Delete button is grayed out because of the still opened handles to the users registry.Expected output
All handles should be closed to make it possible to delete the user profile.
Actual output
Here is the result of
handle64.exe
after stop sshd and user is no longer logged in (username:sftp
.