Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created July 2, 2020 20:23
Show Gist options
  • Save danielecook/8f27fe89b6315c56dc0bc6eb8aca5596 to your computer and use it in GitHub Desktop.
Save danielecook/8f27fe89b6315c56dc0bc6eb8aca5596 to your computer and use it in GitHub Desktop.
ssh into node and retain the current directory #hpc
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