Prevent sleep while SSH session active
I'm trying to prevent computer from going to sleep while there is an active SSH connection but just can't set it up. Found a short description on how to do it but it doesn't work: https://askubuntu.com/questions/521620/prevent-machine-from-sleeping-when-ssh-connections-are-on?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa Since I'm using ubuntu 16.04 I have tried to move the script to /lib/systemd/system-sleep/ and it shows up in logs that script was executed and returned 1 before computer was suspended but it's not preventing it from going to sleep. I have also tried
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.