Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active July 15, 2017 02:19
Show Gist options
  • Select an option

  • Save dwallraff/171492ee800e0bf21843f5f05770a747 to your computer and use it in GitHub Desktop.

Select an option

Save dwallraff/171492ee800e0bf21843f5f05770a747 to your computer and use it in GitHub Desktop.
SSH Config ProxyCommand fun times
Host internal-server
HostName 192.0.1.10
User internal-user
ServerAliveInterval 60
ProxyCommand sh -c ">&2 echo 'Password is: XXXXXXXX'; ssh -T -i ~/.ssh/generic_key external-user@123.123.123.123 'nc %h %p'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment