MacOS client disconnecting after around 2 minutes

I have registered a device with remote.it CLI on my iMac (Sequoia) but the mac only is accessible for about 2 minutes after ssh-ing into it from the local network (presumably waking it up?).
How do I keep the remote.it service permanently running?

You need to make sure that your Mac is never set to go to sleep, hibernate or switch to go to low power mode (which means it needs a power source). It can turn off monitors.
However, I would like to clarify it is only accessible from the local network. Are you using a Remote.It connection? Typically you do not need Remote.It to access it while on the LAN (local network) unless there is some type of network isolation.
Are you using the Remote.It Desktop to make the connection or app.remote.it? Do you have your SSH client open and connected? When you use app.remote.it connections, these are temporary and will only be active for 5 minutes of inactivity or a max of 8 hours with activity whichever is first. To keep a connection on demand that will reconnect when you need it, you can use the Remote.It Desktop application or CLI.

1 Like

Hi there, thanks for responding!
I want to use remote.it for when I am away
I am using app.remote.it
I can connect via ssh when remote.it says the computer is offline. The Mac is then marked as online after around 30 seconds of me connecting to it via ssh.

I am assuming macOS has a sleep mode that disables non important services but keeps the computer running with services like ssh. I was wondering if I could get it to keep remote.it running regardless. Do you think this is possible?

You are correct that MacOS has a sleep mode that will stop services from running in the background. However, you can disable this. See their article: Set sleep and wake settings for your Mac - Apple Support (CA)