Created
May 21, 2021 18:21
-
-
Save HR/d36212a9deb461250bcdce9348585b7b to your computer and use it in GitHub Desktop.
Restore screen session if exist or start new one ssh
This file contains hidden or 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
# Connect to screen session | |
case "/$(ps -p $PPID -o comm=)" in | |
*/sshd) screen -RR;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment