Ik gebruik Windows WSL2 op mijn Surface Laptop 5, en gebruik al een hele tijd 1Password om mijn SSH-keys, die ik nodig hebt voor git, te beheren.
Gisteren zijn er een Windowsupdates geïnstalleerd, en vandaag werkt de connectie met remote gitrepositories niet meer en krijg ik geen 1Passwordpopup meer om het SSH-verzoek goed te keuren:
Deze constructie werkt door de standaard Windows SSH-agent uit te zetten, en met named pipes SSH-commands naar de 1Password-SSH-agent te forwarden. De instructies daarvoor staan onder andere hier: https://gist.github.com/W...4cc201d3fbc8cd1f6aeccef51
Ik heb dus in mijn .bashrc dit staan:
Het benodigde npiperelay.exe staat in C:\Program Files (x86)\npiperelay en is toegevoegd aan de $PATH. (Anders had het voor vandaag ook niet gewerkt.)
De gisteren geïnstalleerde updates zijn:
Heeft iemand enig idee hoe dit te fixen?
Gisteren zijn er een Windowsupdates geïnstalleerd, en vandaag werkt de connectie met remote gitrepositories niet meer en krijg ik geen 1Passwordpopup meer om het SSH-verzoek goed te keuren:
Ook het opvragen welke SSH-keys er zijn lukt niet meer:~/projects/x$ git up
git@url: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
De SSH-agent is dus stuk.@SurfaceLaptop5:~/projects/x$ ssh-add -l
error fetching identities: communication with agent failed
Deze constructie werkt door de standaard Windows SSH-agent uit te zetten, en met named pipes SSH-commands naar de 1Password-SSH-agent te forwarden. De instructies daarvoor staan onder andere hier: https://gist.github.com/W...4cc201d3fbc8cd1f6aeccef51
Ik heb dus in mijn .bashrc dit staan:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| # Configure ssh forwarding export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock # need `ps -ww` to get non-truncated command for matching # use square brackets to generate a regex match for the process we want but that doesn't match the grep command running it! ALREADY_RUNNING=$(ps -auxww | grep -q "[n]piperelay.exe -ei -s //./pipe/openssh-ssh-agent"; echo $?) if [[ $ALREADY_RUNNING != "0" ]]; then if [[ -S $SSH_AUTH_SOCK ]]; then # not expecting the socket to exist as the forwarding command isn't running (http://www.tldp.org/LDP/abs/html/fto.html) echo "removing previous socket..." rm $SSH_AUTH_SOCK fi echo "Starting SSH-Agent relay..." # setsid to force new session to keep running # set socat to listen on $SSH_AUTH_SOCK and forward to npiperelay which then forwards to openssh-ssh-agent on windows (setsid socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork &) >/dev/null 2>&1 fi |
Het benodigde npiperelay.exe staat in C:\Program Files (x86)\npiperelay en is toegevoegd aan de $PATH. (Anders had het voor vandaag ook niet gewerkt.)
De gisteren geïnstalleerde updates zijn:
- August 8, 2023-KB5028948 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 22H2 .NET
- August 8, 2023—KB5029263 (OS Build 22621.2134)
Heeft iemand enig idee hoe dit te fixen?
If some cunt can fuck something up, that cunt will pick the worst possible time to fucking fuck it up, because that cunt’s a cunt.