Skip to content

Instantly share code, notes, and snippets.

@jonstorer
Forked from quentindecock/pairme.bash
Created July 10, 2013 18:33
Show Gist options
  • Save jonstorer/5968870 to your computer and use it in GitHub Desktop.
Save jonstorer/5968870 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "REMEMBER: tmux -2 -S /tmp/tmux -attach; chmod aog+rwx /tmp/tmux"
ssh ci 'awk !/:1026/ ~/.ssh/known_hosts > ~/.ssh/known_hosts.new'
ssh ci 'mv ~/.ssh/known_hosts ~/.ssh/known_hosts.bak'
ssh ci 'mv ~/.ssh/known_hosts.new ~/.ssh/known_hosts'
ssh -v -N -R 1026:localhost:22 [email protected] >> /tmp/ssh_tunnel.out &
/usr/local/bin/tmux -2 -S /tmp/tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment