Skip to content

Commit

Permalink
Disable unsupported SHA-2 pubkey algorithms (#67)
Browse files Browse the repository at this point in the history
As documented in paramiko/paramiko#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.
  • Loading branch information
bsiegel committed Jan 20, 2022
1 parent 24ca4f6 commit 6ed83f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion remarkable_mouse/remarkable_mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def use_key(key):
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()
Expand Down

0 comments on commit 6ed83f1

Please sign in to comment.