Skip to content

Commit

Permalink
Order matters in ssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Aug 1, 2024
1 parent 6326c3c commit 75947e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/ssh/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Host leaf*
User root

Host *
User metal
IdentityFile files/ssh/id_rsa
Expand All @@ -6,9 +9,6 @@ Host *
UserKnownHostsFile /dev/null
PubkeyAcceptedKeyTypes +ssh-rsa

Host leaf*
User root

Host fe80::*
# bash could be replaced with ncat, but it is not preinstalled on Cumulus
ProxyCommand ssh -q -F files/ssh/config leaf01 'sudo ip vrf exec default bash -c "exec 3<>/dev/tcp/%h/%p; cat<&0 >&3 & cat<&3 >&1"'

0 comments on commit 75947e6

Please sign in to comment.