Skip to content

Commit 9fadf38

Browse files
authored
Fix connecting with new paramiko version (#128)
1 parent 6f44dc6 commit 9fadf38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rmview/connection.py

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ def _initialize(self):
138138
'password': self.password,
139139
'pkey': self.pkey,
140140
'timeout': self.timeout,
141+
# remarkable's Dropbear version (Dropbear v2019.78) does not support the server-sig-algs extension,
142+
# and also does not support sha2, so connection fails if sha2 is used
143+
# paramiko starting with version 2.9.0, paramiko defaults to sha2 if not explicitly disabled: https://github.com/paramiko/paramiko/issues/1961
144+
'disabled_algorithms': {'pubkeys': ['rsa-sha2-512', 'rsa-sha2-256']},
141145
}
142146

143147
if self.auth_method == 'password':

0 commit comments

Comments
 (0)