Skip to content

Instantly share code, notes, and snippets.

@jespada
Created December 7, 2011 20:08
Show Gist options
  • Save jespada/1444402 to your computer and use it in GitHub Desktop.
Save jespada/1444402 to your computer and use it in GitHub Desktop.
little function that create a screen session on the remote host
# usage: sssh remotehost
# place it on your .bashrc
function sssh {
HOST=$1
SSH="/usr/bin/ssh"
echo "screen session on remote host $1 , press Ctrl+A d to dettach"
$SSH -t $HOST screen -xRR
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment