SSHNotes - Waikato Linux Users Group

Want to connect to a remote SSH server and have it remember the exact state of the terminal including the running applications? This even works when a connection is dropped.
ssh joe@home.sweet.home screen -rx
Must be connected to a terminal.
This is Screen complaining, not SSH. Well, you can provide a terminal easily by using the -t switch: ssh -t user@host screen -rx
Combined with SSHKeys it's excellent for reconnecting those IRC sessions with a single key/buttonpress.
The resulting command should look like this:
ssh username@host.net -t 'screen -RD'

SSHNotes - Waikato Linux Users Group

No comments

Post a Comment