mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 15:19:16 +00:00
Previously, when no explicit auth method was configured, the code would only try the first available key (id_ed25519) even if the server only accepted a different key (id_rsa). This caused authentication failures when users had multiple SSH keys but only some were authorized. Changes: - Add findAllDefaultPrivateKeys() to discover all available keys - Try ssh-agent first (matching regular SSH behavior) - Try ALL default keys (id_ed25519, id_ecdsa, id_rsa) in order - Add debug logging for ssh2 auth flow diagnostics - Improve auth method ordering: agent -> keys -> password -> keyboard