Browse Source

Disable unsupported SHA-2 pubkey algorithms (#67)

As documented in https://github.com/paramiko/paramiko/issues/1961 there is an incompatibility between Paramiko 2.9+ and dropbear (the SSH server used on Remarkable) when negotiating the pubkey algorithm. This fixes the issue by disabling SHA-2 algorithms, causing Paramiko to offer a SHA-1 algorithm which Dropbear will accept.
master
Brandon Siegel 3 years ago committed by GitHub
parent
commit
6ed83f14cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      remarkable_mouse/remarkable_mouse.py

3
remarkable_mouse/remarkable_mouse.py

@ -73,7 +73,8 @@ def open_rm_inputs(*, address, key, password):
username='root', username='root',
password=password, password=password,
pkey=pkey, pkey=pkey,
look_for_keys=False look_for_keys=False,
disabled_algorithms=dict(pubkeys=["rsa-sha2-512", "rsa-sha2-256"])
) )
session = client.get_transport().open_session() session = client.get_transport().open_session()

Loading…
Cancel
Save