I think we need to distinguish between outgoing ssh sessions and incoming ones. As long as you’re active at the local keyboard, that should be no problem. It’s the other way that is a concern. (See Can Fedora Workstation be configured so SSH logins inhibit suspend?)