Using screen to give you a persistent ssh connection

May 2, 2011 at 6:03 pm Leave a comment

GNU screen is a tool that can be used to do many wonderful things.

One such wonderful thing is give you a persistent ssh terminal on a server. This lets you:

* Give you a starting point to pick up where you left off last time (history etc)
* Allow you to pick up where you left off after your connection gets broken (flaky connection, tunnels etc)

Recipe:

First time: screen
If you want to leave: screen -d or C-A C-d
If you want to restore the previous connection: screen -r

Done. This works best when you only have one instance of screen around on a machine.

Advertisements

Entry filed under: Uncategorized.

Apt yum dictionary Compomo

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


May 2011
M T W T F S S
« Apr   Jun »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

%d bloggers like this: