From 9fadf38ca0cf1844db6f55d325922f9c93abe9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Thu, 20 Jan 2022 20:30:01 +0100 Subject: [PATCH] Fix connecting with new paramiko version (#128) --- src/rmview/connection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rmview/connection.py b/src/rmview/connection.py index 6164cbf..7c92473 100644 --- a/src/rmview/connection.py +++ b/src/rmview/connection.py @@ -138,6 +138,10 @@ def _initialize(self): 'password': self.password, 'pkey': self.pkey, 'timeout': self.timeout, + # remarkable's Dropbear version (Dropbear v2019.78) does not support the server-sig-algs extension, + # and also does not support sha2, so connection fails if sha2 is used + # paramiko starting with version 2.9.0, paramiko defaults to sha2 if not explicitly disabled: https://github.com/paramiko/paramiko/issues/1961 + 'disabled_algorithms': {'pubkeys': ['rsa-sha2-512', 'rsa-sha2-256']}, } if self.auth_method == 'password':