mhard666
Goto Top

Gopass Probleme beim Sync ins Git-Repo unter Windows

Hallo allerseits,

ich bin gerade dabei, mir mit gopass eine neue Lösung zur Passwortverwaltung einzurichten. Dabei liegt der Fokus auf der problemlosen Nutzung auf unterschiedlichen Plattformen und Geräten. Bei Keepass hatte ich hier wiederholt Sync-Fehler, wenn die Datenbank auf mehreren Systemen geöffnet war...

gopass ist etwas umständlicher einzurichten, dafür ist die Idee dahinter einfach genial - für einen persönlichen Passwortsafe gleichermaßen wie für einen im Team genutzten Passwortsafe.

Ich habe gopass samt git4Windows und GPG4Win auf meinem Windows-Hauptrechner eingerichtet. SSH, GPG konfiguriert... Sync nach dem zentralen Git-Reposoitory funktioniert soweit, aber:
Während ich den Sync mit dem Befehl
gopass sync
in der gitbash erfolgreich durchführen kann, funktioniert es in PowerShell und Windows PowerShell nicht

gitbash:

$ gopass sync
� Syncing with all remotes ...
[<root>]
   gitfs pull and push ... Skipped (no remote)
[private]
   gitfs pull and push ... OK (no changes)
   done
✅ All done

PowerShell:

❯ gopass sync
� Syncing with all remotes ...
[<root>]
   gitfs pull and push ... Skipped (no remote)
[private]
   gitfs pull and push ... ⚠ Failed to pull before git push: exit status 1: git@gitrepo.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
❌ Failed to push "private" to its remote: exit status 128: git@gitrepo.org: Permission denied (publickey).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
✅ All done

Der SSH Key ist aber richtig konfiguriert. Der Test der SSH-Verbindung zum Git-Repo ist in gitbash und PowerShell gleichermaßen erfolgreich

gitbash:

$ ssh -T git@gitrepo.org
Enter passphrase for key '/c/Users/xxxxxx/.ssh/id_ed25519':  
Hi there, xxxxxx! You've successfully authenticated with the key named PC; user@domain, but Forgejo does not provide shell access.  
If this is unexpected, please log in with password and setup Forgejo under another user.

PowerShell:

❯ ssh -T git@gitrepo.org
Enter passphrase for key 'C:\Users\xxxxxx/.ssh/id_ed25519':  
Hi there, xxxxxx! You've successfully authenticated with the key named PC; user@domain, but Forgejo does not provide shell access.  
If this is unexpected, please log in with password and setup Forgejo under another user.

Irgend etwas muss ja dann mit der Verbindung zum Git-Repo aus gopass heraus anders laufen. Hat wer eine Idee, an welcher Schraube ich noch drehen kann, damit es funktioniert?

Vielen Dank schon mal.

VG mhard666

Content-Key: 3860149603

Url: https://administrator.de/contentid/3860149603

Printed on: April 28, 2024 at 05:04 o'clock