“On Systems where systemd controls the directories under /var/run/user/<uid> it may be that the socket forwarding fails because /var/run/user/<uid>/gnupg is deleted on logout. To workaround this you can put gpgconf --create-socketdir in the startup script of your shell e.g. ~/.bashrc or ~/.zshrc.”

gpgconf --create-socketdirを.bashrcに書いてもsshのセッション張る時には実行される前だからディレクトリが無くてリモート転送に失敗する。うーん...

sudo loginctl enable-linger usernameすれば回避出来そう。

Sign in to participate in the conversation