remy icon indicating copy to clipboard operation
remy copied to clipboard

no matching host key type found. Their offer: ssh-rsa

Open vsht opened this issue 2 years ago • 0 comments

Hi,

I just wanted to mention that upon upgrading to Fedora 37 (OpenSSL 3.0.5 5, rsync version 3.2.7 protocol version 31) remy stopped working for me.

The ssh part goes through just fine (it connects and can send commands to my Remarkable 1), but the rsync part fails with the error message

Unable to negotiate with 10.11.99.1 port 22: no matching host key type found. Their offer: ssh-rsa
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(231) [Receiver=3.2.7]
Unable to negotiate with 10.11.99.1 port 22: no matching host key type found. Their offer: ssh-rsa
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(231) [Receiver=3.2.7]

The quick and dirty fix is to change the line

ssh_config = ['-e', '%s -o batchmode=yes' % which("ssh")]

in filesource.py to

ssh_config = ['-e', '%s -o batchmode=yes -o HostKeyAlgorithms=+ssh-rsa' % which("ssh")]

Then everything works again :)

Cheers, Vladyslav

vsht avatar Jan 30 '23 09:01 vsht