Skip to content

v0.11.1 — login works over SSH

Choose a tag to compare

@ralyodio ralyodio released this 30 Jul 08:29
· 307 commits to main since this release

moshcode login / /login now picks the device-code flow automatically on SSH and headless shells.

The loopback flow listens on 127.0.0.1 on the machine running the CLI, then asks a browser to redirect there. Over SSH that browser is on a different machine, so its 127.0.0.1 is the laptop's — the auth code was minted fine but landed nowhere, and login always timed out.

  • auto-detects SSH_CONNECTION/SSH_TTY, or Linux with no DISPLAY/WAYLAND_DISPLAY
  • --browser (or MOSHCODE_LOGIN=browser) forces the old loopback flow
  • --device (or MOSHCODE_LOGIN=device) still forces the code
  • /login and /whoami are now listed in the TUI help