Win32-OpenSSH icon indicating copy to clipboard operation
Win32-OpenSSH copied to clipboard

Breaking changes of ForwardAgent path parsing

Open buglloc opened this issue 3 years ago • 0 comments
trafficstars

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
[email protected]: 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
[email protected]: 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
[email protected]: Permission denied (publickey).

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

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

buglloc avatar Apr 12 '22 19:04 buglloc