Terminal connection
Ideal for pulling repositories, installing dependencies, running builds, and managing long-running tasks. When the connection is unstable, enable client keepalives and use verbose logs to determine whether the interruption occurred during the handshake, authentication, or session.
ssh -vvv -o ServerAliveInterval=30 -o ServerAliveCountMax=4 "$MAC_USER@$MAC_HOST"