Limit gpg-agent forwarding. Add work hosts that need specific settings.

This commit is contained in:
Darren 'Tadgy' Austin 2024-08-21 14:27:44 +01:00
commit 9a225e0435

View file

@ -14,7 +14,7 @@ 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 ]]"
Match exec "[[ -e ${HOME}/.gnupg/S.gpg-agent ]]" host !*.coventry,!*.appliansys.com,!*.appliansys.net
RemoteForward %d/.gnupg/S.gpg-agent ${HOME}/.gnupg/S.gpg-agent
# Home stuff.
@ -72,3 +72,7 @@ Host github.com git.rlworkman.net
Host zapp zapp.opensourcerers.net
Hostname zapp.opensourcerers.net
Port 9922
Host esx.support.coventry vidar.coventry
User root
HostKeyAlgorithms ssh-rsa