You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system name and version: Windows 10 1909 build 18363.720
OpenSSH / Putty version: Windows built-in OpenSSH_for_Windows_7.7p1 plus OpenSSH_8.2p1 from Git for Windows
Issue Description
I have Git configured to use the Windows built-in OpenSSH that runs as a service, and in my OS path, that's the version that appears earliest. That works fine if I open PowerShell. However, in Git Bash, I need the non-windows versions of things earlier on the path, so that's set up to prepend the git/usr/bin directory to the path in the profile file. That also works fine. However, if I then run PowerShell from within Git Bash (as there are a few things that are easier that way), Posh-Sshell tries to work with the non-Windows OpenSSH and starts nagging for the key passphrase even though the Windows service is already running and will get used when I need it to be
I've monkey-patched this locally so it does roughly what I want (not nagging about the passphrase when the service is running) by adding -All to the Get-Command in Get-NativeSshAgent and suppressing the core.sshCommand warning when the version string from that SSH command suggests it's the Windows one, so if this is an unsupported workflow, I'm not doomed, but it might be worth considering.
The text was updated successfully, but these errors were encountered:
System Details
C:\Program Files\WindowsPowerShell\Modules\posh-sshell\0.3.1
OpenSSH_for_Windows_7.7p1
plusOpenSSH_8.2p1
from Git for WindowsIssue Description
I have Git configured to use the Windows built-in OpenSSH that runs as a service, and in my OS path, that's the version that appears earliest. That works fine if I open PowerShell. However, in Git Bash, I need the non-windows versions of things earlier on the path, so that's set up to prepend the
git/usr/bin
directory to the path in the profile file. That also works fine. However, if I then run PowerShell from within Git Bash (as there are a few things that are easier that way), Posh-Sshell tries to work with the non-Windows OpenSSH and starts nagging for the key passphrase even though the Windows service is already running and will get used when I need it to beI've monkey-patched this locally so it does roughly what I want (not nagging about the passphrase when the service is running) by adding
-All
to theGet-Command
inGet-NativeSshAgent
and suppressing thecore.sshCommand
warning when the version string from that SSH command suggests it's the Windows one, so if this is an unsupported workflow, I'm not doomed, but it might be worth considering.The text was updated successfully, but these errors were encountered: