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

bug: SSH Connection Problem "Permission denied (public key)" While SSH to Raspberry Pi Without Robot #15845

Open
yura-kutsiy opened this issue Jul 31, 2024 · 2 comments
Labels

Comments

@yura-kutsiy
Copy link

Overview

Received "Permission denied (publickey)" error while attempting to connect through SSH.

  • SSH to Raspberry Pi without a connected robot.

Steps to reproduce

  • Checkout opentrons/opentrons and opentrons/buildroot repositories and build the Raspberry Pi image using the "opentrons-build.sh" script.
  • Flash the image to the SD card and boot the Raspberry Pi.
  • Add the public key to the Raspberry Pi using:
curl \
-H 'Content-Type: application/json' \
-d "{\"key\":\"$(cat ot2_ssh_key.pub)\"}" \
ROBOT_IP:31950/server/ssh_keys
  • Attempt to connect using:
    ssh -i ot2_ssh_key root@ROBOT_IP
    Receive error: "Permission denied (publickey)."

Current behavior

I am able to interact with the Raspberry Pi, for instance:

curl http://169.254.83.221:31950/server/ssh_keys

{"public_keys": [{"key_md5": "0aa5479d9a375df07b1fe50b880e10f5", "key": "ssh-rsa AAAAB3Nz.......6yh8Jn"}]}

I am able to add the public key

curl \
-H 'Content-Type: application/json' \
-d "{\"key\":\"$(cat ot2_ssh_key.pub)\"}" \
ROBOT_IP:31950/server/ssh_keys

{"message": "Added key e662715d4bd907822bc89093d36e7bcb", "key_md5": "e662715d4bd907822bc89093d36e7bcb"}

, but when attempting SSH, I receive "Permission denied".

Also, I get a warning message in the Opentrons desktop app: "This robot's API server is not responding correctly to requests at IP address 169.254.83.221."
image

Expected behavior

Be able to connect to the Raspberry Pi via SSH without a robot.

Operating system

Linux

System and robot setup or anything else?

What I Have Done:

@prachee-roy17
Copy link

Hi! I am experiencing the same thing. I was wondering if you were able to find a solution to this issue? and if so, what worked for you?

@Parasiterex
Copy link

I am experiencing the same thing combined with an error in the opentrons app

This robot's API server is not responding correctly to requests at IP address 169.254.90.58

Did you find any fixes thus far?

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

No branches or pull requests

3 participants