mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
feat(ssh/config): match host *and* user
This commit is contained in:
@@ -59,13 +59,16 @@ Host legacy-hosts azure-vm-* oci-bastion-*
|
||||
|
||||
# Avoid nuisances with ephemeral hosts and localhost
|
||||
# E.g. preemptible or testing virtual machines which are often recreated
|
||||
Host localhost *-vm-*
|
||||
Host localhost *-vm-* *.compute.internal
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile /dev/null
|
||||
|
||||
# User-specific settings
|
||||
# E.g. programmatic accesses
|
||||
Match user robots
|
||||
Match Host *.compute.internal User ansible
|
||||
IdentitiesOnly yes
|
||||
IdentityFile ~/.ssh/ansible.key
|
||||
Match User robots
|
||||
AddKeysToAgent no
|
||||
BatchMode yes
|
||||
ForwardAgent no
|
||||
|
||||
Reference in New Issue
Block a user