Win32-OpenSSH
Win32-OpenSSH copied to clipboard
OpenSSH-8.9.1 - get_agent_identities: ssh_agent_bind_hostkey: communication with agent failed
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest version
- [X] Search the existing issues.
Steps to reproduce
Hi all,
I did a quick check on the issues, but didn't find any issues of recent versions. To quickly sketch, I use the openSSH client on Windows to connect to an Ubuntu 22.04.1. Because the server was updated recently, I had issues with the default OpenSSH version installed via Windows store. I updated to the 8.9.1.0 via the msi installer:
((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)
8.9.1.0
Everything worked peachy for about 8 days. And just like that, today it stopped working. When I try to do the same connection that worked just yesterday, now the ssh-agent seems to be not functioning anymore:
debug2: get_agent_identities: ssh_agent_bind_hostkey: communication with agent failed debug1: get_agent_identities: ssh_fetch_identitylist: communication with agent failed
When I check my keys with ssh-add -l, they are actually listed correctly.
Anyone else running into this issue? Feel free to close or link if it's a duplicate obviously :)
A work around would also be much appreciated, as openSSH and windows terminal are my daily drivers at work :)
Expected behavior
keys are auto loaded in ssh-agent
connecting to the remote server works flawlessly
Actual behavior
keys seem to be loaded in ssh-agent
connection towards server is made, but debug shows communication with agent fails
server refuses connection because no correct key is given
Error details
No response
Environment data
Name Value
---- -----
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version
8.9.1.0
Visuals
No response
to add some extra information, I used the installer OpenSSH-x64-v8.9.msi to roll back to
OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.2 (8.9.0.0) and the problem with the agent is resolved. So the bug was introduced somewhere between those 2. I think a Windows update might have broken 8.9.1.0, because it worked fine for a week..
some extra information, yesterday I upgraded my work laptop to Windows 11, and this problem resurfaced, being on 8.9.0.0.
However, when I upgrade to 8.9.1.0 on Win11, it works again, so it's something to do with the Windows version aswell