Results 1 to 5 of 5

Thread: SSH sessions keep disconnecting

  1. #1
    λεγιων ονομα μοι sycld's Avatar
    Join Date
    Sep 2008
    Posts
    10,570
    Credits
    2,476
    Mentioned
    0 Post(s)

    Default SSH sessions keep disconnecting

    I doubt any of you can help, but I'm desperate.

    I'm trying to use a SSH client to run a simulation program on a Linux server. The simulations take many hours to complete, and so they have to execute unsupervised. However, well before the simulations can complete, the SSH clients I've been using have disconnected early.

    I didn't have this problem on my lab computer, which was running XP I think. But I no longer have access to it, so I'm trying to run them from home, running Windows 7, and now I'm running into this problem.

    I've tried using both Putty and another client called Private Shell Agent, and I tried fiddling with the settings, but to no avail.

    Any ideas?


    PANDAS
    If you don't like them, then get the fuck out.

    Quote Originally Posted by Think View Post
    Atheists are quite right

  2. #2
    Senior Member ShitFace's Avatar
    Join Date
    Sep 2008
    Posts
    5,025
    Credits
    3,595
    Mentioned
    0 Post(s)

    Default

    I was going to suggest putty but yeah.
    I don't have it installed at the moment so I can't look at the settings for you, but I suspect if you are having this problem while remote connecting and not in the lab, maybe its a setting server side, disconnect any remote connections that are inactive for a certain period of time.
    Speak with system admin I guess (lol generic response is relevant).

    failing that, dual boot linux? can you set up the program on your own machine?
    Andy says:
    prince of persia is more skill than hack and slash
    ShitFace says:
    i dont think skill is a genre of game lol
    Andy says:
    of course it is you have seen the crystal maze havnt you?
    he says what next a skill physical mental?


    Blind people don't see black, they see the same thing you see out of your elbow - VengfulScars

  3. #3
    Senior Member
    Join Date
    Sep 2008
    Posts
    810
    Credits
    799
    Mentioned
    0 Post(s)

    Default

    Maybe too late, but...

    If you're running a command on a server you can use the screen utility or something like tmux to start the command. From there you can safely log off from the server and be assured that the session will continue to run.

    This will start a new session:
    > screen -r

    When you're in the second session you can use the key combination 'control+a+control+d' to return to your actual ssh session. From there you should see a message that you've detached the screen. You can then type `screen -r` again to return to your session. Between logging on and off of the server the session should persist.

  4. #4
    λεγιων ονομα μοι sycld's Avatar
    Join Date
    Sep 2008
    Posts
    10,570
    Credits
    2,476
    Mentioned
    0 Post(s)

    Default

    I love your work with Subway, Jared =0

    But thanks, yeah I fiddled around with "screen," and I figured out that I have detach the window from the terminal session in order to not have it end when the terminal session ended.

    So it works! Thanks.


    PANDAS
    If you don't like them, then get the fuck out.

    Quote Originally Posted by Think View Post
    Atheists are quite right

  5. #5
    Deal with it DaiTengu's Avatar
    Join Date
    Sep 2008
    Location
    Appleton, Wisconsin, United States
    Posts
    3,191
    Credits
    2,668,855
    Mentioned
    5 Post(s)

    Default

    ctl-a-d will detach a screen session

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •