Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created September 4, 2012 01:27
Show Gist options
  • Save wokamoto/3615588 to your computer and use it in GitHub Desktop.
Save wokamoto/3615588 to your computer and use it in GitHub Desktop.
SSH Proxy 用の .ssh/config 例
Host ssh_proxy
HostName ssh_proxy.example.net
Port 22
User hoge
IdentityFile ~/.ssh/id_rsa
Host target
HostName target.example.net
Port 22
User fuga
IdentityFile ~/.ssh/id_rsa.fuga
ProxyCommand ssh ssh_proxy nc %h %p
Host *
ServerAliveInterval 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment