bordaigorl / rmview

A live viewer for reMarkable written in PyQt5
GNU General Public License v3.0
765 stars 64 forks source link

Could not connect: private key file is encrypted #127

Closed gustaphe closed 2 years ago

gustaphe commented 2 years ago

Screenshare has stopped working for me at some point in the last couple of months. I get this error whether I'm connecting through usb or over wifi:

$ rmview -v
2022-01-18 08:22:25+0100 [-] Log opened.
[INFO] STARTING: Tue Jan 18 08:22:25 2022
[INFO] Searching configuration in rmview.json, /home/username/.config/rmview.json
[DEBUG] Configuration failure in rmview.json: [Errno 2] No such file or directory: 'rmview.json'
[INFO] Fetching configuration from /home/username/.config/rmview.json
[DEBUG] Config values: {'ssh': {'address': '192.168.0.116', 'username': 'root', 'auth-method': 'key', 'key': '/home/username/.ssh/id_rsa'}, 'orientation': 'auto', 'pen_size': 15, 'pen_color': 'red', 'pen_trail': 200}
[INFO] Using known hosts file: /home/username/.config/rmview_known_hosts
[INFO] Loaded known hosts from /home/username/.config/rmview_known_hosts
[INFO] Connecting...
[ERROR] Could not connect to 192.168.0.116: private key file is encrypted
[INFO] Please check your remarkable is connected and retry.
[ERROR] private key file is encrypted
[DEBUG] Stopping connection worker

ssh works fine with the same address and key.

This is an RM2, connecting from arch linux.

bordaigorl commented 2 years ago

There's a typo in your configuration, it should be auth_method and not auth-method. Can you correct that and try again?

gustaphe commented 2 years ago

Oops, thanks.

Same error though (I did check, and it's using the correctly spelled auth_method now)

gustaphe commented 2 years ago

Paramiko 2.9 was at fault. pip install --upgrade paramiko==2.8.1 solved the issue.