Remote Deploy via SSH

host.mw master pushes node installs over SSH — user doesn't have to log into the remote.

Flow

  1. My Licenses → pick lic → "One-Click Install" modal
  2. Enter remote SSH host/port/user/creds + optional OTP
  3. master one_click_install validates lic + signs temp IP-mode token
  4. Background SSH task pushes install.sh + exec returns immediately (15s)
  5. install.sh runs nohup'd on the client, reports progress per STEP
  6. Frontend polls lic/install-progress

SUDO preflight

Probe remote SUDO state before deploy. ROOT direct OK / NOPASSWD sudo OK / password-sudo or no-sudo → reject immediately (prevent polluting home).

OTP design

If remote SSH has 2FA on, NK keeps a single SSH session alive (so OTP not re-prompted each reconnect) + two-stage download/install + keepalive.