Evidlo / remarkable_mouse

use your reMarkable as a graphics tablet
GNU General Public License v3.0
506 stars 48 forks source link

Paramiko exception, unless I specify --key #80

Open alexnegron opened 1 year ago

alexnegron commented 1 year ago

Hi, thanks for the great program, been using it for a while (though not recently).

I sought to set it up again, and ran into some paramiko authentication issues. Here's the output.

remouse --debug
/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Debugging enabled...
Connecting to input '10.11.99.1'
Traceback (most recent call last):
  File "/Users/alexnegron/opt/anaconda3/envs/rm/bin/remouse", line 8, in <module>
    sys.exit(main())
  File "/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/remarkable_mouse/remarkable_mouse.py", line 155, in main
    rm_inputs = open_rm_inputs(
  File "/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/remarkable_mouse/remarkable_mouse.py", line 90, in open_rm_inputs
    client.connect(
  File "/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/paramiko/client.py", line 435, in connect
    self._auth(
  File "/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/paramiko/client.py", line 766, in _auth
    raise saved_exception
  File "/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/paramiko/client.py", line 666, in _auth
    self._transport.auth_publickey(username, pkey)
  File "/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/paramiko/transport.py", line 1580, in auth_publickey
    return self.auth_handler.wait_for_response(my_event)
  File "/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/paramiko/auth_handler.py", line 250, in wait_for_response
    raise e
paramiko.ssh_exception.AuthenticationException: Authentication failed.

Clearly some ssh problem, but I'm not very knowledgeable about the details of ssh. At some point, I've setup a passwordless ssh login, since ssh remarkable gets me right into the device no issue. However, when I specify the --key argument, everything works:

remouse --key ~/.ssh/id_rsa --orientation left
/Users/alexnegron/opt/anaconda3/envs/rm/lib/python3.9/site-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Connected to 10.11.99.1

Is there a way to get this to work by just calling remouse without --key?