mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 15:41:17 +00:00
Address Codex P1 review: when the passphrase dialog is skipped or times out, the encrypted key was left in connOpts.privateKey without a passphrase. buildAuthHandler would still attempt it as publickey-user, causing the same stall this PR fixes. Now delete connOpts.privateKey in all non-success paths so auth falls back to password/keyboard-interactive. Applies to SSH chain, SFTP chain, and SFTP main connection paths. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>