PowerShell / PowerShell/Win32-OpenSSH

Breaking changes of ForwardAgent path parsing

Open
#1,931 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi, update to V8.9.1.0p1-Beta breaks backward compatibility of parsing the ForwardAgent path.

  • On V8.6.0.0p1-Beta:
C:\Users\buglloc
λ C:\Users\buglloc\Downloads\V8.6.0.0p1-Beta\ssh.exe -V
OpenSSH_for_Windows_8.6p1, LibreSSL 3.3.3

C:\Users\buglloc
λ C:\Users\buglloc\Downloads\V8.6.0.0p1-Beta\ssh.exe "-oForwardAgent=\\.\pipe\openssh-ssh-agent" github.com
buglloc@github.com: Permission denied (publickey).

C:\Users\buglloc
λ C:\Users\buglloc\Downloads\V8.6.0.0p1-Beta\ssh.exe "-oForwardAgent=\\\\.\pipe\openssh-ssh-agent" github.com
Cannot forward agent socket path "\\\\\\\\.\\pipe\\openssh-ssh-agent": Unknown error
buglloc@github.com: Permission denied (publickey).
  • On V8.9.1.0p1-Beta :
C:\Users\buglloc
λ C:\Users\buglloc\Downloads\V8.9.1.0p1-Beta\ssh.exe -V
OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3

C:\Users\buglloc
λ C:\Users\buglloc\Downloads\V8.9.1.0p1-Beta\ssh.exe "-oForwardAgent=\\.\pipe\openssh-ssh-agent" github.com
Cannot forward agent socket path "\\.\\pipe\\openssh-ssh-agent": No such file or directory
buglloc@github.com: Permission denied (publickey).

C:\Users\buglloc
λ C:\Users\buglloc\Downloads\V8.9.1.0p1-Beta\ssh.exe "-oForwardAgent=\\\\.\pipe\openssh-ssh-agent" github.com
buglloc@github.com: Permission denied (publickey).

Which path should I use to be compatible with both (and future) versions? May I use //./pipe/<pipe_name> for example?

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.

Research direction

Start by tracing the ForwardAgent path parsing behavior in the V8.6.0.0p1-Beta and V8.9.1.0p1-Beta versions described in the report. Determine which path form remains compatible with both versions and future versions, then verify the result using the Windows pipe examples and error messages provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.