Last active
August 29, 2015 14:01
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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