Skip to content

Instantly share code, notes, and snippets.

@bougui505
Last active August 29, 2015 14:01
Show Gist options
  • Save bougui505/4f3ab09d4c4849fe2a6e to your computer and use it in GitHub Desktop.
Save bougui505/4f3ab09d4c4849fe2a6e to your computer and use it in GitHub Desktop.
ssh ProxyCommand. Replace distant_hostname by the hostname of the distant machine to connect, ssh_server by the server accessible from your local machine and distant_machine by the machine you want to connect through ssh_server. File must be placed in ~/.ssh/config.
Host distant_hostname
User your_username
ProxyCommand ssh user@ssh_server exec nc distant_machine 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment