Automatically start SCREEN on SSH login
I just found a nice method to invoke screen automatically if after login via SSH. So you don’t have to manually start it first. Put the following at the end of your ~/.bashrc # Auto-screen invocation. see: http://taint.org/wk/RemoteLoginAutoScreen # if we're coming from a remote SSH connection, in an interactive session # then automatically put us into a screen(1) session. Only try once # -- if $STARTED_SCREEN is set, don't try it again, to avoid looping # if screen fails for some reason.