Skip to content

spawn status/connect fail with 'no SSH key configured' on keyless lagotto-launched (SSM-only) instances; status shouldn't need a key #222

Closed

Description

@scttfrdmn

Summary

spawn connect and spawn status fail on a lagotto-launched instance with
failed to find SSH key: instance has no SSH key configured. lagotto's headless
launcher.Provision path launches keyless (SSM-only, by design — spawn#130), so spawn's
key-based connect can't find a local key for it. SSM access works, but the spawn CLI's connect
path assumes a key.

Evidence (spawn v0.62.0)

$ spawn status i-0a26ce433fc3cd8e4
Looking up instance i-0a26ce433fc3cd8e4...
failed to find SSH key: instance has no SSH key configured

(Earlier in the same instance's life, spawn connect i-0a26ce... did work via "injecting
spawn's key over SSM" — so connect can bootstrap a key over SSM, but status doesn't, and after
a stop/restart cycle connect also lost it.)

Why it matters

A lagotto-launched instance is exactly the case where the operator most needs spawn connect/
status to just work (they didn't run spawn launch locally, so there's no local key from the
launch). Connect already knows how to inject a key over SSM ("injecting spawn's key over SSM...")
— status should use the same path, and connect should re-inject after a stop/start.

Suggested

  • spawn status should not hard-fail on a missing local key — it only needs Describe + SSM, not
    SSH; report status regardless.
  • spawn connect should reliably (re)inject the key over SSM for keyless/SSM-only instances,
    including after a stop→start (the key injection didn't survive the restart here).
  • Consistent fallback to --session-manager when no SSH key is resolvable.

Version

spawn v0.62.0 (instance launched via lagotto v0.47.0 headless Provision, keyless/SSM)

Activity

  1. added
    bug
    on Jun 18, 2026
  2. added a commit that references this issue on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions