Tous Nouveau

user:thomas gists créés par un utilisateur

title:mygist gists avec un titre spécifique

filename:myfile.txt gists qui ont des fichiers avec un nom spécifique

extension:yml gists qui ont des fichiers avec une extension spécifique

language:go gists qui ont des fichiers écrits en un langage spécifique

topic:homelab gists with given topic

Connexion


Tous Nouveau Connexion

All gists matching topic proxycommand

Récemment créé
Le moins récemment créé
Récemment mis à jour
Le moins récemment mis à jour

timmy / SSH 透過跳板機自動代理連線

0 j'aimes
0 forks
1 fichiers
Dernière activité 10 months ago
此 SSH 設定根據目標 IP 或域名,透過不同的跳板機 (ProxyCommand) 進行連線,確保內外部網路存取的靈活性與自動化。
automation jump-host networking proxycommand security ssh
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.*.*
Plus récent Plus ancien

Propulsé par Opengist ⋅ Load: 11ms⋅

Français
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文