Skip to content

Instantly share code, notes, and snippets.

@takus
Created October 25, 2011 05:01
Show Gist options
  • Save takus/1311351 to your computer and use it in GitHub Desktop.
Save takus/1311351 to your computer and use it in GitHub Desktop.
ssh to remote host & execute command & stay at remote server after executing
ssh -t user@host "cd /path/to/dir && /bin/bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment