Fixed yubikey forwarding

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-10-27 11:34:23 +02:00
parent 7eedb5aa11
commit ced2cc382f
No known key found for this signature in database
GPG Key ID: 911B85FBC6003FE5
2 changed files with 2 additions and 6 deletions

View File

@ -25,10 +25,12 @@ export DOTREPO="$HOME/Git/dotfiles"
export EDITOR=nvim
export PAGER="nvimpager -p"
{%@@ if profile == "Mirkwood" @@%}
# use gpg for ssh
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
gpg-connect-agent updatestartuptty /bye > /dev/null
{%@@ endif @@%}
# tehfuk
eval $(thefuck --alias)

View File

@ -22,17 +22,11 @@ host rivendell
HostName reekynet.com
port 22
User gimli
RemoteForward /run/user/1001/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra
ForwardAgent yes
ExitOnForwardFailure yes
host mirkwood
HostName reekynet.com
port 8123
User reekymarko
RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra
ForwardAgent yes
ExitOnForwardFailure yes
host anitta
HostName 10.200.200.4