Skip to content

Commit

Permalink
Fix connecting with new paramiko version (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennofs authored Jan 20, 2022
1 parent 6f44dc6 commit 9fadf38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rmview/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 9fadf38

Please sign in to comment.