Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paramiko exception, unless I specify --key #80

Open
alexnegron opened this issue Dec 7, 2022 · 0 comments
Open

Paramiko exception, unless I specify --key #80

alexnegron opened this issue Dec 7, 2022 · 0 comments

Comments

@alexnegron
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant