| Summary: | RSA key authentication doesn't work with enabled GSSAPIKeyExchange: sign_and_send_pubkey: internal error: initial hostkey not recorded | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | qji <robert.kulyassa> | ||||||
| Component: | Kerberos support | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED WORKSFORME | ||||||||
| Severity: | normal | CC: | djm | ||||||
| Priority: | P5 | ||||||||
| Version: | 8.9p1 | ||||||||
| Hardware: | Other | ||||||||
| OS: | Linux | ||||||||
| Attachments: |
|
||||||||
|
Description
qji
2022-03-15 00:44:20 AEDT
Please attach a full debug trace from the server. It's hard to tell what has gone wrong from just the error message.
Also:
> GSSAPIKeyExchange yes
This is a third-party patch to OpenSSH. It's fairly likely that this is causing the problem.
specifically, the gssapi-kex patch probably needs something like:
> if (ssh->kex->initial_hostkey == NULL)
> hostbound = 0;
added after the first "if" statement near the start of sshconnect2.c:sign_and_send_pubkey()
Created attachment 3582 [details]
sshd_debug3_log_key_auth_failed.txt
Here is a sshd debug3 log showing the output the same time I ran the "ssh localadmin@myserver" command on my client.
Created attachment 3583 [details]
ssh_client_debug3_log_key_auth_failed.txt
And here is the client log (ssh -vvv) for the same event (but a different session)
Comment on attachment 3583 [details]
ssh_client_debug3_log_key_auth_failed.txt
thanks - yes, this is the 3rd-party gssapi-kex modification causing this. It needs a tweak like the one I described above
problem not in OpenSSH code but in a third-party patch Closing bugs from openssh-9.1 release cycle |