-
Notifications
You must be signed in to change notification settings - Fork 768
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
Cannot connect with public key + LSA error #87
Comments
I don't know the error but could this be some error like this: #81 (missing ssh-lsa.dll in c:\windows\system32) |
Thanks for the quick answer but I've already checked the right x64 dll had been correctly copied to windows\system32. |
Further search on the net say that c0000041 could mean a denied access (STATUS_PORT_CONNECTION_REFUSED as per |
Yes, key authentication requires sshd to run with special privileges. Try installing it as a service (see wiki for instructions). |
Actually, I was running sshd with the command line (as admin) because when using the service, it also fails but c:\windows\system32\sshd.log shows no trace of my connection (whereas I set LogLevel DEBUG in sshd_config). What do I miss for the log? |
I found my problem! And there could be room for improvement for OpenSSH-Win32 here. With CopSSH, the connection to the local account is considered as a local connection - and so for security purpose we had activated the windows security policy "deny access to this computer from the network". But with openssh-win32, the connection is considered as a remote connection... What's you view on this? Please note my question on how to set the log remains... I still don't see how to config sshd to see traces of connections in the log. |
Logging happens but the log file is in c:\ root drive at c:\sshd.log ; this problem has now been fixed and that sshd.log will be in the directory where sshd.exe binary is located in future builds. |
@OhSoGood, ssh connections need to be considered as network logon to play well with rest of Windows security. |
@OhSoGood Can you elaborate on the fix you found for this problem? I'm receiving a similar error ("Cannot logon using LSA package (err = 0, ntStat = c0000041)." |
@danarcari, it was rather a config change than a fix: with our previous ssh server (copssh), connections were considered as local connections and so we had explicitly denied remote connections (in windows security policy editor). We had not changed that setting when we tried openssh-server, and that was the reason for the error - allowing again remote connections solved it. |
Screenshot would be in French :) |
Thanks a lot for your port of openssh to windows!
I have been using copssh for a while (and sshd on linux...) and tried to use the 2015-11-09 release of your project. With yours, I manage to connect with password but never with public key.
You'll find attached my sshd log file ( sshd_log.txt ). My authorized_keys file seems correct (actually it works well with copssh and a linux sshd) and is located in c:\users(myuser).ssh as expected... If you need more info, don't hesitate!
I have this error msg in the log:
debug1: LsaRegisterLogonProcess()...
debug1: Cannot logon using LSA package (err = 1300, ntStat = c0000041).
Can it be the cause of it?
Thanks a log for your help!
The text was updated successfully, but these errors were encountered: