waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

Unable to connect to SSH host

Open ekool opened this issue 1 year ago • 7 comments

I have a host I am unable to add. No matter what type of auth or settings I choose, I get this error:

wave> error, ssh cannot connect to client: ssh: handshake failed: remote host identification has changed

Connecting to this host via SSH via regular terminal works fine. No other error is given. (latest Mac client installed via homebrew).

ekool avatar Jul 01 '24 13:07 ekool

same here

zerorendan avatar Jul 02 '24 17:07 zerorendan

the same

FrankSchoene avatar Jul 02 '24 18:07 FrankSchoene

Please use the thumbs-up icon for the first post if you can't contribute anything but a me-too. Thanks! This might bost the probability we get an answer

joergmschulz avatar Jul 02 '24 20:07 joergmschulz

Unfortunate to see this is still happening. Since we are using the golang ssh/knownhosts library, there have been some cases where our parsing of knownhosts is incorrect. Unfortunately, I haven't been able to reproduce it myself, but it's widespread enough that there must be a straightforward way to reproduce it. To help narrow this down:

  • Do any of you have particular keywords in your ~/.ssh/config file that are related to parsing known hosts?
  • Also, what does your ~/.ssh/known_hosts look like? Are there multiple publickeys per host listed? Are the keys being hashed in a specific way?

In an absolute worst case scenario, you could temporarily get around the issue by deleting the host from your known_hosts file and add it again while connecting with wave. I don't think this is a satisfactory solution, so I'll be looking for a better system on our end.

oneirocosm avatar Jul 04 '24 23:07 oneirocosm

Unfortunate to see this is still happening. Since we are using the golang ssh/knownhosts library, there have been some cases where our parsing of knownhosts is incorrect. Unfortunately, I haven't been able to reproduce it myself, but it's widespread enough that there must be a straightforward way to reproduce it. To help narrow this down:

  • Do any of you have particular keywords in your ~/.ssh/config file that are related to parsing known hosts?
  • Also, what does your ~/.ssh/known_hosts look like? Are there multiple publickeys per host listed? Are the keys being hashed in a specific way?

In an absolute worst case scenario, you could temporarily get around the issue by deleting the host from your known_hosts file and add it again while connecting with wave. I don't think this is a satisfactory solution, so I'll be looking for a better system on our end.

Yes Screenshot 2024-07-05 at 11 34 29 AM and the known_hosts, yes it has multiple publickeys per host listed, example 192.168.86.20 ssh-ed25519 and 192.168.86.20 ecdsa-sha2-nistp256 and a few more for 192.168.86.20 ssh-ed25519

zerorendan avatar Jul 05 '24 17:07 zerorendan

In that case, there's a chance it's related to this issue: https://github.com/golang/go/issues/36126 I don't see this being resolved on their end very quickly, so I'll see if I can find a workaround.

oneirocosm avatar Jul 05 '24 21:07 oneirocosm

I have a similar problem

this is my error image

vinowan avatar Jul 18 '24 12:07 vinowan

For me removing keys with ssh-keygens -R on ip or hostname before to retry worked.

Mathieudewet avatar Aug 26 '24 19:08 Mathieudewet

https://github.com/wavetermdev/waveterm/releases/tag/v0.11.0-beta.1

0.10.4 release still doesn't work well.

But I updated to 0.11.0-beta.1 and ssh connection works.

Snowflake-Pink avatar Jan 19 '25 05:01 Snowflake-Pink