Skip to content

Instantly share code, notes, and snippets.

@svperfecta
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svperfecta/f01b7794e755e9a24e3a to your computer and use it in GitHub Desktop.
Save svperfecta/f01b7794e755e9a24e3a to your computer and use it in GitHub Desktop.
Terminal Stuff
# Automatically create or reattach to an iTerm session
tmux attach -t base || tmux new -s base
# SSH With no profile
ssh -T -i ~/.ssh/somekey user@server -t "bash --noprofile"
# Rsync using an identify file
rsync -avz --partial --progress --rsh="ssh -i $HOME/.ssh/somekey.pem" ~/somefile root@1.2.3.4:~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment