Opentrons / opentrons

Software for writing protocols and running them on the Opentrons Flex and Opentrons OT-2
https://opentrons.com
Apache License 2.0
419 stars 178 forks source link

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

Open yura-kutsiy opened 2 months ago

yura-kutsiy commented 2 months ago

Overview

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

Steps to reproduce

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 commented 2 days ago

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?