Created
July 2, 2020 20:23
-
-
Save danielecook/8f27fe89b6315c56dc0bc6eb8aca5596 to your computer and use it in GitHub Desktop.
ssh into node and retain the current directory #hpc
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
function node() { | |
# Usage: | |
# node ca015 | |
# ssh into node and go to current directory | |
ssh -t ${1} "cd ${PWD}; bash" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment