How to upload from a distant MacOS?

I have an iOS app made with expo SDK 36 and I use Debian 11.

For this reason, I use:

  • expo build:ios for building the .ipa in the expo CI server. <= run from linux
  • expo upload:ios for publishing my application the first time for test flight. <= run from a distance macOS 10.15.4 Darwin 19.4.0 with xcode 11.5 over SSH

This command hangs forever,

[15:46:26]: Going to upload updated app to App Store Connect
[15:46:26]: This might take a few minutes. Please don't interrupt the script.

I may have lost the SSH session…

How can I know if the command succeeded or failed?