Skip to content

Instantly share code, notes, and snippets.

@cou929
Created December 12, 2012 01:13
Show Gist options
  • Save cou929/4263989 to your computer and use it in GitHub Desktop.
Save cou929/4263989 to your computer and use it in GitHub Desktop.
踏み台サーバを nc で proxy する際の ssh config テンプレ
# local -> proxy_host -> web??, db??, etc... を想定
# proxy_user, proxy_user_id_rsa はそれぞれ踏み台サーバのユーザーと鍵
Host web?? db??
ProxyCommand ssh proxy_host nc -w 3600 %h %p
User proxy_user
IdentityFile ~/.ssh/proxy_user_id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment