Prevent sleep during ssh session
Chris Jones
jonesc at hep.phy.cam.ac.uk
Mon Aug 24 12:51:59 UTC 2009
Hi,
> 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.
Indeed. I assumed that the OP was correct in that it was the remote
machine sleeping and not this, but that was an assumption, and you know
what they say about that...
If it is this then it is easy to fix with by adding the KeepAlive ssh
option E.g.
http://embraceubuntu.com/2006/02/03/keeping-ssh-sessions-alive/
note that the above suggests editing /etc/ssh/ssh_config on the local
machine, which requires sudo rights. However, it is also possible for
any user to place the options in their private ~/.ssh/config file.
Chris
More information about the ubuntu-users
mailing list