SSH problems

Anthony M. Rasat anton at kaltimpost.net
Wed Dec 5 21:02:03 UTC 2007


------- Original message -------
From: Michael Peek  <peek at tiem.utk.edu>
Sent: 4.12.'07,  14:25

> Yes, that did indeed fix the problem. Thanks and kudos to Smoot!
> 
> Now gurus, I've got another question for you. What option is causing me
> to be logged out after a period of inactivity? My machines at work do
> not do this, it only happens when I log in from my ubuntu laptop, so I'm
> assuming that this is another option in /etc/ssh_config, but I can't
> find anything in the man page that looks like it.
> 
> Thanks for all your help! You guys rock
> 
> Michael

Getting disconnected on an idle ssh session is not new for me. Personally I blame my ISP. For your situation it could be anything else - laptops conserved power more aggressive than desktops so you may turn on ssh option Keep-Alive Interval to several seconds.

But anyhow, to recover your important ssh session i.e. compiling source program, you can use application called screen. To start using screen, call it unparametered as regular user:

 $ screen

Press Enter to continue from screen introductory page. Then do your stuff, do what you do.

In case you got disonnected again, start ssh session (again) and recover that previous screen session using following command:

 $ screen -r -x

Your screen session will prompt you at the last session you left. By the way, if you scroll alot up and down - I usually do that often in a ssh console with my mouse scroll wheel - you will notice that scroll bar did not extend downward. This is where application called more (or its twin brother named less) came handy.

Just my 2 cents.

Regards,

Anthony M. Rasat
IT Department
Kaltim Post Group
Balikpapan - Indonesia.-



More information about the ubuntu-users mailing list