Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vsht opened this issue Jan 30, 2023 · 0 comments
Open

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

vsht opened this issue Jan 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@vsht
Copy link

vsht commented Jan 30, 2023

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

@bordaigorl bordaigorl added the enhancement New feature or request label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants