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
|
# Avoid nuisances with ephemeral hosts and localhost
|
||||||
# E.g. preemptible or testing virtual machines which are often recreated
|
# E.g. preemptible or testing virtual machines which are often recreated
|
||||||
Host localhost *-vm-*
|
Host localhost *-vm-* *.compute.internal
|
||||||
StrictHostKeyChecking no
|
StrictHostKeyChecking no
|
||||||
UserKnownHostsFile /dev/null
|
UserKnownHostsFile /dev/null
|
||||||
|
|
||||||
# User-specific settings
|
# User-specific settings
|
||||||
# E.g. programmatic accesses
|
# E.g. programmatic accesses
|
||||||
Match user robots
|
Match Host *.compute.internal User ansible
|
||||||
|
IdentitiesOnly yes
|
||||||
|
IdentityFile ~/.ssh/ansible.key
|
||||||
|
Match User robots
|
||||||
AddKeysToAgent no
|
AddKeysToAgent no
|
||||||
BatchMode yes
|
BatchMode yes
|
||||||
ForwardAgent no
|
ForwardAgent no
|
||||||
|
|||||||
Reference in New Issue
Block a user