Last active
August 29, 2015 14:08
-
-
Save tamebadger/d3ecbf21f93f853fa8ba to your computer and use it in GitHub Desktop.
ssh directly into directory
This file contains 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
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