Closed rukai closed 1 year ago
Hi, the problem here is that you need to verify and accept the server public key. This key is returned in ClientEvent::ServerPubkey
; in your code, it seems that this event is ignored and dropped, so Makiko treats the key as rejected and aborts the connection with the server public key was not accepted
error. You always need to handle this event, even if you plan to accept all server keys unconditionally.
You can read more about this in chapter 1 of the tutorial (here is the code for the tutorial).
Oh, I see, I carelessly deleted this line from the example https://github.com/honzasp/makiko/blob/master/examples/tutorial_4.rs#L46C24-L46C24 I missed the accept() call and thought I was just deleting a println. Sorry for the erroneous issue.
No problem! I'm happy to help, feel free to open another issue if you hit some other problem :)
I ran this code against an amazon EC2 instance running ubuntu.
I can connect to this instance fine with russh and I am passing in the same public ip and private ED25519 key that I use with russh. The final
.expect
fails with:'Error when trying to authenticate: AuthAborted'
And I also get a tracing error:Error while driving ssh connection: server public key was not accepted