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

Following Instructions for WSL results in invalid ELF header #62

Open
arcsector opened this issue Jan 22, 2024 · 0 comments
Open

Following Instructions for WSL results in invalid ELF header #62

arcsector opened this issue Jan 22, 2024 · 0 comments

Comments

@arcsector
Copy link

arcsector commented Jan 22, 2024

I am trying to get pageant working with WSL2 on windows 10 build 1903 - I'm mainly stuck on the part where the SSH agent opens the DLL for pageant to prompt for authentication. I'm running the following command for my socket on windows Powershell (unelevated):

> pwd
C:\Users\user\.wsl\
> ls
wsl-ssh-pageant.exe
> .\wsl-ssh-pageant.exe --wsl C:\Users\haraksin\.wsl\ssh-agent.sock --systray
2024/01/22 12:59:26 Listening on Unix socket: C:\Users\user\.wsl\ssh-agent.sock

My pageant certificate is a dll, which I have stored in my WSL SSH config as such:

Host myhost-test.com
        User user
        PKCS11Provider "/mnt/c/Program Files/HID Global/ActivClient/acpkcs211.dll"

and when WSL2 tries to open that, it fails with this message:

dlopen /mnt/c/Program Files/Package/acpkcs211.dll failed: /mnt/c/Program Files/Package/acpkcs211.dll: invalid ELF header

I'm unsure where this is failing, at the Npiperelay, or the ssh socket, so I thought I'd start here. Thanks for the help, and I hope this gets other people to a closer solution.

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

1 participant