Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell Integration #47

Closed
Outek opened this issue Jan 8, 2021 · 5 comments
Closed

Powershell Integration #47

Outek opened this issue Jan 8, 2021 · 5 comments

Comments

@Outek
Copy link

Outek commented Jan 8, 2021

Hi

It would be very useful, if this would work with Powershell too.

# Version
$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

# Run exe
.\wsl-ssh-pageant-amd64-gui.exe --winssh ssh-pageant -force

# Export
$env:SSH_AUTH_SOCK="\\.\pipe\winssh-pageant"

# Echo
$env:SSH_AUTH_SOCK
\\.\pipe\winssh-pageant

Is there a way to use this within Powershell?

@benpye
Copy link
Owner

benpye commented Mar 13, 2021

Sorry - missed this issue. I use almost exclusively from PowerShell, are you talking about using it for PowerShell sessions over SSH or just ssh from PowerShell?

@Outek
Copy link
Author

Outek commented Mar 15, 2021

Just for ssh from Powershell

@benpye
Copy link
Owner

benpye commented Mar 20, 2021

It should work today, I'm a little surprised it doesn't. If you run wsl-ssh-pageant with --verbose do you get any output when attempting to SSH?

@mastqe
Copy link

mastqe commented Jan 20, 2022

@Outek I believe your issue may be that you are setting the environment variable with the wrong pipe name. The name should match what you pass to the --winssh argument. So in this case it would be '\.\pipe\ssh-pageant' or update the argument to match the environment variable ('winssh-pageant').

@benpye
Copy link
Owner

benpye commented Aug 6, 2022

Good catch @mastqe ! I'm going to close this issue as it looks like you spotted the issue, and @Outek hasn't replied since.

@benpye benpye closed this as completed Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants