Skip to content

ASCII Box reused IP is blocked by provider-wide known_hosts state #1748

Description

@shunkakinoki

Summary

ASCII Box SSH targets use the provider key directory's shared known_hosts file rather than UseLeaseKnownHosts. When ASCII Box assigns a previously used public IP to a new VM with a different host key, a new crabbox run remains in ssh-auth readiness until its 20-minute timeout.

Reproduction

  1. Acquire and stop an ASCII Box lease.
  2. Acquire a later lease that receives the same public IP with a different host key.
  3. Run a command through Crabbox.

Observed with Crabbox revision da6484dc0ed73003ccc9850f40e4f170d7795590; inspection of current origin/main (c9cdc35987531d6f71c317693cb18cbbb0dbe8d9) shows ASCII Box still does not call UseLeaseKnownHosts.

The provider reports the Box ready. box ssh succeeds, and direct SSH with the ASCII Box key succeeds. Crabbox's exact probe fails with REMOTE HOST IDENTIFICATION HAS CHANGED, identifying the stale entry in the shared ASCII Box known_hosts file. Removing only that IP with ssh-keygen -R <ip> -f <ascii-box-known-hosts> lets the already-running crabbox run recover immediately without starting a replacement Box.

Expected

ASCII Box host trust should be scoped to the Crabbox lease, as it is for providers that call UseLeaseKnownHosts, so ephemeral IP reuse cannot poison later leases while strict host-key verification remains enabled.

Activity

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

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions