Mac – Remote SSH access to sleeping MacBook Pro only works when ‘Find the Mac’ application is running – can I make this persist

find-my-macsleep-wakessh

As expected, I cannot SSH in to my MacBook when I have left it with the lid shut/sleeping, but if I use my iPhone to access 'Find my Mac', the MacBook wakes and then I can SSH in.

However, when my iPhone goes to sleep/I quit 'Find my Mac', the SSH connection hangs.

Is it possible to use 'Find my Mac' to wake my MacBook for SSH and then have this connection persist after I close 'Find my Mac'?

Best Answer

Have you tried out caffeinate?