Skip to content

Instantly share code, notes, and snippets.

@tamebadger
Last active August 29, 2015 14:08
Show Gist options
  • Save tamebadger/d3ecbf21f93f853fa8ba to your computer and use it in GitHub Desktop.
Save tamebadger/d3ecbf21f93f853fa8ba to your computer and use it in GitHub Desktop.
ssh directly into directory
ssh server -t "cd /my/remote/directory; bash --login"
//tip: create alias for this as follows
alias ssh2dir='ssh server -t "cd /my/remote/directory; bash --login"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment