From 6ed83f14cbfa996be2d7a6463ba68b81d041eb64 Mon Sep 17 00:00:00 2001 From: Brandon Siegel <96068+bsiegel@users.noreply.github.com> Date: Thu, 20 Jan 2022 14:32:58 -0800 Subject: [PATCH] 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. --- remarkable_mouse/remarkable_mouse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remarkable_mouse/remarkable_mouse.py b/remarkable_mouse/remarkable_mouse.py index e7958fe..fc64176 100755 --- a/remarkable_mouse/remarkable_mouse.py +++ b/remarkable_mouse/remarkable_mouse.py @@ -73,7 +73,8 @@ def open_rm_inputs(*, address, key, password): username='root', password=password, 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()