WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

To allow support of Linux / OSX SSH_AUTH_SOCK & Windows openssh agent pipe

Open vlinx opened this issue 1 year ago • 3 comments

Both Linux and OSX use SSH_AUTH_SOCK

The name of the windows openssh agent pipe, default is: .\pipe\openssh-ssh-agent

(get-childitem \.\pipe).FullName | FindStr ssh
\.\pipe\openssh-ssh-agent

The community has some complicated solutions, see below.

But they are very inconvenience.

https://github.com/ndbeals/winssh-pageant

https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/win-pageant-openssh-interop.html

WindTerm supports pageant agent pipe out of box

(get-childitem \.\pipe).FullName | FindStr page
\.\pipe\pageant.user_name.uniq_id

Session Setting -> SSH -> Authentication -> Attemp pageant authentication

Please add this feature to WimdTerm

Session Setting -> SSH -> Authentication -> Attemp ssh-agent authentication

vlinx avatar Nov 24 '23 03:11 vlinx

The similar feature got implemented in PuTTY-nd

https://sourceforge.net/p/putty-nd/feature-requests/42/

vlinx avatar Nov 25 '23 02:11 vlinx

  1. Enable the ssh-agent service

Via Admin Powershell:

Set-Service ssh-agent -StartupType Automatic Start-Service ssh-agent

  1. Now ssh-add works

ssh-add path/to/.ssh/id_rsa

vlinx avatar Nov 25 '23 02:11 vlinx

Thank you for your suggestion. Fortunately, I have noticed that the new version of libssh 0.10.0 already supports this feature. I will fulfill this requirement when subsequent versions are upgraded to the new version of libssh. Please stay tuned.

kingToolbox avatar Dec 02 '23 08:12 kingToolbox