-
-
Save jespada/1444402 to your computer and use it in GitHub Desktop.
little function that create a screen session on the remote host
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
# 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