Skip to content

Instantly share code, notes, and snippets.

@sureshnath
Last active December 9, 2015 21:08
Show Gist options
  • Save sureshnath/4328078 to your computer and use it in GitHub Desktop.
Save sureshnath/4328078 to your computer and use it in GitHub Desktop.
Close SSH session after command execution
ssh user@host "sh script.sh </dev/null >/dev/null 2>/dev/null &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment