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
|
||||
ForwardAgent yes
|
||||
HashKnownHosts no
|
||||
RemoteForward %d/.gnupg/S.gpg-agent ${HOME}/.gnupg/S.gpg-agent
|
||||
SendEnv LANG LC_* TERM
|
||||
StrictHostKeyChecking accept-new
|
||||
VerifyHostKeyDNS 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.
|
||||
Host afterdark.org.uk
|
||||
Port 6722
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue