全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

登錄


全部 新建 登錄

All gists matching topic proxycommand

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新

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

0 喜歡
0 分支
1 檔案
最後活躍 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.*.*
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 11ms⋅

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