timmy revisou este gist 10 months ago. Ir para a revisão
Sem alterações
timmy revisou este gist 1 year ago. Ir para a revisão
1 file changed, 14 insertions
ssh_config(arquivo criado)
| @@ -0,0 +1,14 @@ | |||
| 1 | + | Host *.internal.local | |
| 2 | + | ProxyCommand bash -c 'timeout 3 nc -z %h %p || ssh -W %h:%p jump.internal.example.com' | |
| 3 | + | ||
| 4 | + | Host * | |
| 5 | + | ProxyCommand bash -c 'timeout 3 nc -z %h %p || ssh -W %h:%p jump.external.example.com' | |
| 6 | + | ||
| 7 | + | Host 192.168.0.* | |
| 8 | + | ProxyCommand bash -c 'timeout 3 nc -z %h %p || ssh -W %h:%p jump1.example.com' | |
| 9 | + | ||
| 10 | + | Host 172.16.*.* | |
| 11 | + | ProxyCommand bash -c 'timeout 3 nc -z %h %p || ssh -W %h:%p jump2.example.com' | |
| 12 | + | ||
| 13 | + | Host * | |
| 14 | + | ProxyCommand bash -c 'timeout 3 nc -z %h %p || ssh -W %h:%p fallback.jump.example.com' | |
Próximo
Anterior