Skip to content

Ed25519 SSH key authentication fails on macOS — connection refused with key auth, works with password #3

@zdravac

Description

@zdravac

Description

Ed25519 key-based SSH authentication fails silently on macOS. The GUI shows "Failed to connect. Check your credentials and try again." Password authentication works fine with the same server/user.

Environment

  • VibeShell version: 0.1.4
  • macOS: Darwin 25.4.0 (macOS 15.x)
  • Host machine: Mac Studio M2 Max
  • Target: Mac Mini M4 (macOS, sshd)

Steps to Reproduce

  1. Add a server with SSH key auth (Ed25519 key, no passphrase)
  2. Select private key file via Browse (note: file picker only shows .pub files — workaround needed to select private key)
  3. Click Connect
  4. Connection fails with generic credential error

Expected Behavior

Connection succeeds using the Ed25519 private key, same as ssh -i ~/.ssh/id_ed25519 user@host which works correctly from CLI.

Additional Notes

  • Key auth works via OpenSSH CLI: ssh -i ~/.ssh/id_ed25519 zdravac@192.168.1.149 → authenticated
  • Same key is in target's authorized_keys
  • Key has no passphrase
  • Key format: OpenSSH native format (ed25519)
  • Tested with both key in ~/.ssh/ and copied to app support directory — both fail
  • Password auth works correctly as a workaround

Secondary Bug

The Browse button in the key file picker only shows .pub files (public keys). Private keys (no extension or different extension) are not shown. The private key path must be manually edited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions