Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Connect to existing SSH terminal session

  • 02-05-2006 10:59pm
    #1
    Registered Users, Registered Users 2 Posts: 6,762 ✭✭✭


    Is there any way to connect to an existing SSH session terminal?

    My main PC crashed whilst I was working on my Linux box in the background in an SSH window. Now I've got a lot of work in that terminal window (unsaved of course) that I need to get back. I need to be able to connect to that teminal (pts/0)

    Anyone know if it's even possible?


Comments

  • Registered Users, Registered Users 2 Posts: 5,112 ✭✭✭Blowfish


    What were you working in? most text editors autosave every so often so you could be fine.


  • Registered Users, Registered Users 2 Posts: 6,762 ✭✭✭WizZard


    Nah, was writing my make file for a new install of Gentoo. Lots of options and I hadn't saved once :(
    Bugger.

    Anyway it seems (...) that once a session dies it's gone, unfortunately.


  • Registered Users, Registered Users 2 Posts: 3,886 ✭✭✭cgarvey


    I use screen for this very reason. If your SSH session crashes/hangs, you can reconnect to the screen session from another/new SSH session.. very handy.

    .cg


  • Registered Users, Registered Users 2 Posts: 2,747 ✭✭✭niallb


    Blowfish wrote:
    What were you working in? most text editors autosave every so often so you could be fine.

    Answer that question.
    Most decent editors will allow recovery from a crashed session.

    Like cgarvey, I tend to use screen in those situations too.
    It's a major help when you want to be able to let your modem hang up...

    NiallB


  • Closed Accounts Posts: 7,230 ✭✭✭scojones


    screen makes baby jesus smile. It is one of the things I absolutely love about Linux/Unix. It has saved me so many times, and has also made my work alot easier. To start screen, just type screen and hit enter to get rid of the welcome message. To detach a screen session just type "ctrl + a + d" To resume a screen session then type "screen -r". If the session is already attached you can do "screen -x" to attach to it, even it it's already attached. This is useful when you are connected to a UNIX server, but you get disconnected on dialup or whatever. Screen is alot more useful than this and it's worth reading up on it. Also, when in screen you can open up more windows by typing "ctrl +a +c" and switch between windows in screen with "ctrl +a +p". Of course, when I say + here I just mean and, you don't hit the + key :)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,762 ✭✭✭WizZard


    sjones wrote:
    screen makes baby jesus smile. It is one of the things I absolutely love about Linux/Unix. It has saved me so many times, and has also made my work alot easier. To start screen, just type screen and hit enter to get rid of the welcome message. To detach a screen session just type "ctrl + a + d" To resume a screen session then type "screen -r". If the session is already attached you can do "screen -x" to attach to it, even it it's already attached. This is useful when you are connected to a UNIX server, but you get disconnected on dialup or whatever. Screen is alot more useful than this and it's worth reading up on it. Also, when in screen you can open up more windows by typing "ctrl +a +c" and switch between windows in screen with "ctrl +a +p". Of course, when I say + here I just mean and, you don't hit the + key :)
    I will be setting this up when the machine is up and running, I've only used it before to parallel fetch and emerge. I didn't realise it was so versatile.

    I was using nano to write my makefile. I managed to get it back anyway, and am on my way again. (Had a busy day at work yesterday so didn't get a chance to work at it)


Advertisement