PowerShell / PowerShell/Win32-OpenSSH

OpenSSH-8.9.1 - get_agent_identities: ssh_agent_bind_hostkey: communication with agent failed

Open
#1,976 2 comments 0 reactions 1 assignee View on GitHub

@PaulHigin is already working on this.

Since Oct 3, 2022.

Investigate
Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.