Screen-ssh is a small script that loops on ssh to keep you
logged into a remote host across network disconnections (and movements
to different networks). State is retained on the remote host by using
screen to encapsulate the session. So, the ssh just
hops to the remote host and attaches to an instance of screen
(unless this is the initial connection) and you keep working. This is
all pretty easy, but using multiple ssh connections ends up
using multiple tunnels for both X forwarding and ssh-agent
forwarding. So, the mess of this process is caused by coaxing an
already running shell to attach to these new tunnels.
- scsh script.
Use this just like ssh (i.e., "scsh [user@]machine"). Since
the script loops over ssh it can be annoying if you
disconnected from the network. In this case "scsh pause" will stop
the script from trying to establish a new connection, with "scsh
unpause" starting the loop again.
- Required .bashrc hacks.
These hacks are needed in your bash startup stuff to get the X and
ssh-agent tunnels setup properly.
Mark Allman -
mallman@icir.org