Giter VIP home page Giter VIP logo

Comments (10)

Evidlo avatar Evidlo commented on August 17, 2024

Does it work if you leave out --address? Can you ssh into 10.11.99.1?

from remarkable_mouse.

Dmarc avatar Dmarc commented on August 17, 2024

No, it does not work. When doing ssh into 10.11.99.1, I have the message Unable to negotiate with 10.11.99.1 port 22: no matching host key type found. Their offer: ssh-rsa. This is because with openSSH 8.8 and later, ssh-rsa keys are disabled by default, as explained here. This is why I added the two lines
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa
into the SSH config file.

from remarkable_mouse.

Evidlo avatar Evidlo commented on August 17, 2024

That's a bit weird, as the exception from Paramiko is about timing out, whereas the issue in openssh-client is that that RSA isn't supported anymore.

from remarkable_mouse.

Dmarc avatar Dmarc commented on August 17, 2024

Yep, since ssh remarkable works great (with remarkable defined in the SSH config file as shown above), I was expecting that remouse --address remarkable would have worked as well...

from remarkable_mouse.

Dmarc avatar Dmarc commented on August 17, 2024

I forgot to mention I have a Remarkable 2.

from remarkable_mouse.

Evidlo avatar Evidlo commented on August 17, 2024

Have you remouse with 10.11.99.1, so that it doesn't use your ssh config?

from remarkable_mouse.

Dmarc avatar Dmarc commented on August 17, 2024

Here is the result of remouse --address 10.11.99.1:

/home/marc/.local/lib/python3.10/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Exception (client): key cannot be used for signing
Traceback (most recent call last):
  File "/home/marc/.local/lib/python3.10/site-packages/paramiko/transport.py", line 2163, in run
    handler(self.auth_handler, m)
  File "/home/marc/.local/lib/python3.10/site-packages/paramiko/auth_handler.py", line 375, in _parse_service_accept
    sig = self.private_key.sign_ssh_data(blob, algorithm)
  File "/home/marc/.local/lib/python3.10/site-packages/paramiko/agent.py", line 434, in sign_ssh_data
    raise SSHException("key cannot be used for signing")
paramiko.ssh_exception.SSHException: key cannot be used for signing

Traceback (most recent call last):
  File "/usr/bin/remouse", line 8, in <module>
    sys.exit(main())
  File "/home/marc/.local/lib/python3.10/site-packages/remarkable_mouse/remarkable_mouse.py", line 138, in main
    rm_inputs = open_rm_inputs(
  File "/home/marc/.local/lib/python3.10/site-packages/remarkable_mouse/remarkable_mouse.py", line 73, in open_rm_inputs
    client.connect(
  File "/home/marc/.local/lib/python3.10/site-packages/paramiko/client.py", line 435, in connect
    self._auth(
  File "/home/marc/.local/lib/python3.10/site-packages/paramiko/client.py", line 766, in _auth
    raise saved_exception
  File "/home/marc/.local/lib/python3.10/site-packages/paramiko/client.py", line 702, in _auth
    self._transport.auth_publickey(username, key)
  File "/home/marc/.local/lib/python3.10/site-packages/paramiko/transport.py", line 1624, in auth_publickey
    raise SSHException("No existing session")
paramiko.ssh_exception.SSHException: No existing session

from remarkable_mouse.

Evidlo avatar Evidlo commented on August 17, 2024

Can you try with the --password option?

I think it doesn't like your default ssh key. You might also try generating an RSA ssh key and use the --key option.

from remarkable_mouse.

Dmarc avatar Dmarc commented on August 17, 2024

Adding the --password option yields the exact same error message as above.
I think these two lines generate an RSA ssh key, as you suggested:

ssh-keygen -m PEM -t rsa -f ~/.ssh/remarkable -N ''
ssh-copy-id -i ~/.ssh/remarkable.pub [email protected]

Though for having it working properly (i.e., without paramiko exception), I had to replace [email protected] with remarkable. But then remouse --address 10.11.99.1 --key ~/.ssh/remarkable still returns the same error message.

from remarkable_mouse.

Evidlo avatar Evidlo commented on August 17, 2024

Is this still an issue? I'm not sure why 10.11.99.1 isn't working for you. What does host remarkable return?

from remarkable_mouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.