Open LennyPenny opened 1 year ago
Hi!
Wishlist uses its own known_hosts, stored at .wishlist
in the CWD: https://github.com/charmbracelet/wishlist#running-it
Have you looked into it? It's likely that said host changed and is now offering another key...
Hmm no .wishlist
folder is created in the CWD for me.
Btw: is it possible to have this just live at a fixed location instead of the cwd?
hmm, I improved the error message there, can you check again with main
, it should display which known hosts it's using...
ssh: handshake failed: possible man-in-the-middle attack: knownhosts: key mismatch - if your host's key changed, you might need to edit "/home/lenny/.ssh/known_hosts"
however the keys are not mismatched (normal ssh
works, and when I cat /etc/ssh/ssh_host_ed25519_key.pub
on the server it matches the entry in my ~/.ssh/known_hosts
note: I have both rsa and ed25519 host keys on my server - maybe it's comparing the rsa host key to the ed25519 key in my known_hosts
?
aah yes I found the issue!
When the server offers both rsa
and ed25519
host keys and the local known
hosts only contains the ed25519
one this error appears. If I add both keys or just the rsa
one locally it works fine. However then #151 is the next issue
https://github.com/golang/go/issues/36126
seems like its a bug in Go...
I'll try to take a swing at it later... but regardless... it'll take some time to get merged and released - if they accept it.
update: still waiting on that PR :(
wishlist: 0.9.0
I'm getting this error when trying to connect to some of my hosts
However when I just do normal
ssh <hostname>
I can connect just fine and the~/.ssh/known_hosts
file looks correct.Wishlist.log says this:
I'm using gpg-agent btw.