Skip to content

Change in handling of IdentityAgent configuration between 8.6 and 8.9 #1949

Description

@3b0b

I use this fork of Krypton to get a Windows build; it's been fine as provided until now.

After updating to OpenSSH 8.9.1 (which I think actually came through with the latest Windows 11 Insider build) krssh was no longer working for me. After rolling Windows back and installing from the MSI and running some tests, I've concluded that the problem is that with the IdentityAgent set the way Krypton configures it:

IdentityAgent \\.\pipe\krd-agent

in 8.9.1 there is an error which didn't occur in 8.6; details below.

Either changing all the backslashes in that config line to forward slashes, or leaving that line out and setting $env:SSH_AUTH_SOCK to that value instead (with any combination of slashes I tried), seems to fix the problem.

I'm not sure whether that means there is some kind of new bug in parsing/handling that setting or if it should have required forward slashes all along and the handling has actually been fixed. In case it's the former, and in case it might help anyone else, I thought I should report it even though I seem to have found a fix/workaround.

"OpenSSH for Windows" version
8.9.1.0

Server OperatingSystem
Any

Client OperatingSystem
Windows 11 Insider

What is failing
krd-agent

Expected output
(from ssh -v in OpenSSH 8.6)

debug1: Will attempt key: RSA SHA256: agent

Actual output
(from ssh -vvv in OpenSSH 8.9.1)

debug3: unable to connect to pipe \.\pipe\krd-agent, error: 3
debug1: get_agent_identities: ssh_get_authentication_socket: The socket is not connected

Note: ssh -vv or ssh -v results in the following instead

debug1: get_agent_identities: ssh_get_authentication_socket: No such file or directory

./.ssh/config excerpt

Host *
    IdentityAgent \\.\pipe\krd-agent
    ProxyCommand path\to\krssh.exe %h %p

Fixed with:

Host *
    IdentityAgent //./pipe/krd-agent
    ProxyCommand path\to\krssh.exe %h %p

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions