-
Notifications
You must be signed in to change notification settings - Fork 775
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
sshd does not use user publickey from authorized_keys #1420
Comments
Have a look at #1324. The authorized_keys file for users who are in the Administrators group is not in |
Both files exist, so I would expect that sshd uses at least one of them. |
If I reenable the Group match it is apparently used. But the |
It happens to work on another WS2016 host, which was freshly installed a few days ago, with |
Can you please provide the complete SSHD log? The one posted is not complete |
The disk died a few weeks ago, this specific setup does not exist anymore. |
@olafhering - There is no error message or indication about public key read from authorized_keys. copied the last few lines of sshd.log shared above, 4448 2019-07-24 19:45:04.250 debug1: userauth-request for user olh service ssh-connection method keyboard-interactive [preauth] Closing this issue as it's not reproducible anymore. |
Two fresh systems, WS2016 and WS2019, installed yesterday. Login worked yesterday on both. So I think the bug I saw and reported earlier does in fact exist... |
Troubleshooting steps
https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps
Terminal issue? please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH
Please answer the following
"OpenSSH for Windows" version
((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)
8.0.0.0
Server OperatingSystem
((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)
Windows Server 2016 Datacenter
Client OperatingSystem
Leap 15.1
What is failing
ssh into Windows should not ask for a password if
c:\users\username\.ssh\authorized_keys
exist. But for whatever reason sshd does not seem to make an attempt to use this file.Not sure if this issue tracker should be used as a chat system..
Actual output
My silly script to install the downloaded openssh.zip:
The text was updated successfully, but these errors were encountered: