From badf3cc5d9ba162a9b07dfe22b67f326dd5a99e0 Mon Sep 17 00:00:00 2001 From: kiralex Date: Mon, 18 Dec 2017 08:26:33 +0100 Subject: [PATCH 1/2] fix ssh-agent does not work on archlinux --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e7781cc..5afecca 100644 --- a/README.md +++ b/README.md @@ -1164,6 +1164,11 @@ Depending on how your environment is set up, you might need to add these to your export GPG_TTY="$(tty)" export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" gpgconf --launch gpg-agent + +**Note : ** On some systems, for example Archlinux based distros, you need to replace the second line by +``` +export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" +``` ### Copy public key to server From 02bfc69c2ac7119c4b167c4595d7fc8f9c46240e Mon Sep 17 00:00:00 2001 From: kiralex Date: Mon, 18 Dec 2017 08:52:18 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5afecca..ea02d84 100644 --- a/README.md +++ b/README.md @@ -1165,9 +1165,10 @@ Depending on how your environment is set up, you might need to add these to your export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" gpgconf --launch gpg-agent -**Note : ** On some systems, for example Archlinux based distros, you need to replace the second line by +**Note : ** On some systems, for example Archlinux based distros, you need to replace the second and the third line by ``` export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" +gpg-connect-agent updatestartuptty /bye ```