💻 Software
Is it a good idea to put "screen -r" in my .bashrc?
Fresh7 days ago
Mar 15, 20268784 viewsConfidence Score0%
0%
Problem
I'd like to use screen to keep ssh sessions alive on my server. It would be nice if I could automatically resume any running session for my user when I log in. The straightforward way to do this would be adding "screen -r" to my .bashrc, and this seems to work fine. I'm just wondering if this will …
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Is it a good idea to put "screen -r" in my .bashrc?
Low Risk
You need to both automatically attach to an existing session if one exist and create a session otherwise. Make sure you only do this on interactive shells. Bash sources even for non-interactive shells when its parent process is rshd or sshd (this is…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix