Only forward gpg-agent socket over ssh if it exists.
This commit is contained in:
parent
0733a38e41
commit
fb2d21646f
1 changed files with 4 additions and 1 deletions
|
@ -8,12 +8,15 @@ ConnectTimeout 30
|
||||||
ExitOnForwardFailure yes
|
ExitOnForwardFailure yes
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
HashKnownHosts no
|
HashKnownHosts no
|
||||||
RemoteForward %d/.gnupg/S.gpg-agent ${HOME}/.gnupg/S.gpg-agent
|
|
||||||
SendEnv LANG LC_* TERM
|
SendEnv LANG LC_* TERM
|
||||||
StrictHostKeyChecking accept-new
|
StrictHostKeyChecking accept-new
|
||||||
VerifyHostKeyDNS yes
|
VerifyHostKeyDNS yes
|
||||||
VisualHostKey yes
|
VisualHostKey yes
|
||||||
|
|
||||||
|
# Only forward the gpg-agent socket if it exists on the local host.
|
||||||
|
Match exec "[[ -e ${HOME}/.gnupg/S.gpg-agent ]]"
|
||||||
|
RemoteForward %d/.gnupg/S.gpg-agent ${HOME}/.gnupg/S.gpg-agent
|
||||||
|
|
||||||
# Home stuff.
|
# Home stuff.
|
||||||
Host afterdark.org.uk
|
Host afterdark.org.uk
|
||||||
Port 6722
|
Port 6722
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue