Closed x80486 closed 2 years ago
Since this was working before setting SSH_AUTH_SOCK
, looks like (bold guess) the Flatpak doesn't have access to /run/user/1000/gnupg/S.gpg-agent.ssh
:roll_eyes:
[x80486@uplink:~]$ echo $SSH_AUTH_SOCK
/run/user/1000/keyring/ssh
[x80486@uplink:~]$ echo "$(gpgconf --list-dirs agent-ssh-socket)"
/run/user/1000/gnupg/S.gpg-agent.ssh
Wrote to syntevo Support
and they stated:
For the system SSH to work, the most important thing is that it must not ask for anything on command line. To make something in
.bashrc
working, you need to launch SmartGit from the command-line (not an icon).
So I started the Flatpak via flatpak run com.syntevo.SmartGit
and indeed this currently works as expected.
As a side note, I didn't initially test this with stock SmartGit
. It doesn't work either with the official package (if not started in the command-line). Same issue for Windows
and macOS
.
Generated a (
Certify
only) key pair with GnuPG; then added two subkeys: one for authentication and another one for signing.Configure the environment for the integration:
enable-ssh-support
in~/.gnupg/gpg-agent.conf
SECRET_SUBKEY_KEYGRIP
with "authentication" capabilities in~/.gnupg/sshcontrol
—gpg --list-secret-keys --with-subkey-fingerprints
.bashrc
following Arch's GnuPG guide:Reload GnuPG agent, and make sure (
ssh-add -L
) the SSH agent was able to load the public key correctly. If so, add that public SSH key to GitHub, GitLab, etc.This setup works in the terminal:
...but fails in
SmartGit
:This is the debug output from both: the terminal and the Flatpak application: