Logging in over ssh in a different session?

Posted by Jordan Reiter on Super User See other posts from Super User or by Jordan Reiter
Published on 2013-11-11T18:00:08Z Indexed on 2013/11/11 21:58 UTC
Read the original article Hit count: 146

Filed under:

I don't know exactly what the correct term is, but I notice if I log in to a remote SSH server, then close the window, open a new one, and log into that server again, my bash history and user processes appear to be different. For instance, if I started a background process I can't get back into it, or something I typed won't show up in my bash history.

The problem is for some reason occasionally something happens to my remote session and instead of being disconnected the session just hangs; I have to close the window and open a new one to reconnect. As a result sometimes it means a long running process basically is "lost" since I can't get back into it.

Is there any way to set it up so that when I log back in I log back in to the same "session"?

This is using OS X Terminal.

© Super User or respective owner

Related posts about ssh