Prevent sleep during ssh session

Bill Moseley moseley at hank.org
Tue Aug 25 04:08:27 UTC 2009


On Mon, Aug 24, 2009 at 5:43 AM, Chris G <cl at isbd.net> wrote:

>
> Are we sure (OP?) that the OP means that the remote *machine* is going
> to sleep.  A much more common problem with ssh is that the
> *connection* dies after inactivity.


Yes.  The remote machine is configured to sleep after some amount of time of
inactivity.

If I'm just connected via ssh the system will sleep even if my ssh session
is active.  I assume that's because there's no keyboard or mouse activity.

When this happens I can call on the phone to where there the computer is
located and indeed it is asleep.

Yes, I have sudo on that machine.

I'll try the Python script suggested by Brian.  I can't right not because,
well, the remote machine is sleeping...

Thanks for all the suggestions,


-- 
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090824/c531674f/attachment.html>


More information about the ubuntu-users mailing list