-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify ssh config and use it everywhere (#185)
- Loading branch information
1 parent
da56d8c
commit e607f94
Showing
3 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
Host leaf01 | ||
HostName leaf01 | ||
Host leaf* | ||
User root | ||
IdentityFile files/ssh/id_rsa | ||
PasswordAuthentication no | ||
StrictHostKeyChecking no | ||
UserKnownHostsFile /dev/null | ||
PubkeyAcceptedKeyTypes +ssh-rsa | ||
|
||
Host * !leaf01 | ||
Host * | ||
User metal | ||
IdentityFile files/ssh/id_rsa | ||
PasswordAuthentication no | ||
StrictHostKeyChecking no | ||
UserKnownHostsFile /dev/null | ||
PubkeyAcceptedKeyTypes +ssh-rsa | ||
|
||
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"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters