Skip to content

Instantly share code, notes, and snippets.

@danielglauser
Last active December 17, 2015 04:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save danielglauser/5551974 to your computer and use it in GitHub Desktop.
Sharing is caring
#Add the following to a file called .ssh/config
Host daniel
User vagrant
ProxyCommand ssh -q theden nc -q0 localhost 8675
# Misc
Host theden
Hostname denofclojure.org
ForwardAgent yes
#Once we arrange for a meeting time I execute the following alias:
#alias tunnel-dnc="ssh -nNT -R 8675:localhost:22 daniel@denofclojure.org"
#then in another shell I run the alias:
#alias tmux-dnc="tmux -2 -S /tmp/denofclojure attach || tmux -2 -S /tmp/denofclojure new-session 'chmod 777 /tmp/denofclojure && ${SHELL}'"
#I add your key to my .ssh/authorized_keys file.
#Then once you are on my box you execute the tmux-dnc alias and wallah, we're connected.
#I know it seems like a lot but it's pretty easy once it is setup. The usual case is you say, "Hey Daniel let's pair." I say, "Okay, come on over, my tunnel is up." You ssh daniel, then type tmux-dnc once you are in and we're pairing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment