kingToolbox / WindTerm

A professional cross-platform SSH/Sftp/Shell/Telnet/Serial terminal.
https://kingtoolbox.github.io
23.11k stars 1.78k forks source link

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

Open vlinx opened 11 months ago

vlinx commented 11 months ago

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 commented 11 months ago

The similar feature got implemented in PuTTY-nd

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

vlinx commented 11 months ago
  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

kingToolbox commented 11 months ago

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.