How to prevent ssh connection closing from screen lockout

remote ssh connections are closed after pressing control+command+Q to lockout screen.

Pretty sure the macOS does not go to sleep during lockout.

I've tried changing battery settings and all those pmset commands, it does not work. I've also tried modify ssh config file, it does not work either.

Is there a way to keep ssh connection on during screen lock?

MacBook Pro (M4)

Posted on Sep 16, 2025 12:40 AM

Reply
1 reply

How to prevent ssh connection closing from screen lockout

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.