Skip to content

machine add fails after SSH MFA on 0.9.0 #3763

Description

@zxdvd

Is this a reproducible bug?

  • I confirm this is a reproducible bug, not a feature request, idea, question, contribution proposal, or direction check.
  • I reproduced this bug on the version and environment reported below using the exact steps provided.

Current behavior

herdr --remote jms-dev works with my JumpServer MFA setup. But machine add asks for an OTP, then fails after I enter a valid code:

error: lost connection to server: server closed connection; machine was not saved

This happened on repeated attempts. The remote Herdr server was already running and reported compatible.

Expected behavior

Adding the same host should work after entering a valid MFA code.

Reproduction

  1. Use a JumpServer SSH alias requiring a public key followed by keyboard-interactive TOTP. Leave Herdr's SSH settings at their defaults, with no shared ControlPath in SSH config.
  2. Run herdr --remote jms-dev and verify that it connects, then detach.
  3. Run herdr machine add jms-dev --label jms-dev and enter the current OTP. It fails with the error above.

Impact

I can use remote attach, but can't add this host to the multi-machine view.

Environment

  • Herdr version: 0.9.0 locally and remotely (unmodified release)
  • Update channel (stable or preview): stable
  • Operating system: macOS 15.5 arm64; remote Linux
  • Terminal: Ghostty
  • Shell, if relevant: zsh locally
  • Relevant config, if any: PreferredAuthentications publickey,keyboard-interactive, KbdInteractiveAuthentication yes, IdentitiesOnly yes

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

    bugSomething isn't workingmacosaffects macOS-specific behaviormaintainer-neededrequires maintainer judgment or maintainer-only reproductionp2valid narrow or ordinary defect with limited impact or a practical workaroundremoteaffects SSH, headless, or remote attachment behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions