You've already forked ssh_config
mirror of
https://github.com/wavetermdev/ssh_config.git
synced 2026-04-22 15:25:24 -07:00
67c39ca6b4
Lots of changes and new API's here. Fixes #7.
32 lines
762 B
Plaintext
32 lines
762 B
Plaintext
Host bastion.*.i.*.example.net
|
|
User simon.thulbourn
|
|
Port 22
|
|
ForwardAgent yes
|
|
IdentityFile /Users/%u/.ssh/example.net/%r/id_rsa
|
|
UseKeychain yes
|
|
|
|
Host 10.*
|
|
User simon.thulbourn
|
|
Port 23
|
|
ForwardAgent yes
|
|
StrictHostKeyChecking no
|
|
UserKnownHostsFile /dev/null
|
|
IdentityFile /Users/%u/.ssh/example.net/%r/id_rsa
|
|
UseKeychain yes
|
|
ProxyCommand >&1; h="%h"; exec ssh -q $(ssh-bastion -ip $h) nc %h %p
|
|
|
|
Host 20.20.20.?
|
|
User simon.thulbourn
|
|
Port 24
|
|
ForwardAgent yes
|
|
StrictHostKeyChecking no
|
|
UserKnownHostsFile /dev/null
|
|
IdentityFile /Users/%u/.ssh/example.net/%r/id_rsa
|
|
UseKeychain yes
|
|
ProxyCommand >&1; h="%h"; exec ssh -q $(ssh-bastion -ip $h) nc %h %p
|
|
|
|
Host *
|
|
IdentityFile /Users/%u/.ssh/%h/%r/id_rsa
|
|
UseKeychain yes
|
|
Port 25
|