SSH
As I’m almost exclusively using gpg-agent
for SSH (except some cases where I use FIDO2 and resident keys),
as a substitute for ssh-agent
, I have to set it up, so other applications can connect to it.
For that we mainly have to unset
SSH_AGENT_PID
and set
SSH_AUTH_SOCK
.
This is best done in our appropriate init file
Nothing to do, since it’s already included in my dotfile’s ~/.bash_profile
.
if "SSH_AGENT_PID" in ${...}: del $SSH_AGENT_PID
if ($gnupg_SSH_AUTH_SOCK_by if "gnupg_SSH_AUTH_SOCK_by" in ${...} else 0) != os.getpid(): $SSH_AUTH_SOCK = $(gpgconf --list-dirs agent-ssh-socket)
Dotfiles
Now that SSH is working just fine, we can switch the remote of the dotfiles repo over to use SSH.
chezmoi git remote set-url origin git@github.com:DustVoice/dotfiles.git
jj git remote set-url origin git@github.com:DustVoice/dotfiles.git
A simple
chezmoi update
jj git fetch
should now succeed without any issues.