4 ms·
is there a better way to do ssh/auto-screen, for example a setting for ~/.ssh/config to do the same thing?
by toisanji 15y ago
is there a better way to do ssh/auto-screen, for example a setting for ~/.ssh/config to do the same thing?
- mooism2 15y agoI have this at the end of my ~/.bash_profile: # run under screen if we are connected via ssh if [ "$SSH_CONNECTION" ] ; then rm -f .ssh/auth-sock if [ -e "$SSH_AUTH_SOCK" ] ; then ln -s "$SSH_AUTH_SOCK" .ssh/auth-sock fi export SSH_AUTH_SOCK=~/.ssh/auth-sock screen -d -R logout fi
- pyre 15y agoNote: Don't do this if your screen session is setup to launch new shell windows as login shells...