Setting up SSH access to OT-2

Hi All,
I want to access to my OT-2 via SSH. I followed every steps from the website support page but when I tried to upload the “public key” I got this error:

Invoke-WebRequest : 500 Internal Server Error Server got itself in trouble
At line:1 char:70
+ ... rtTo-Json | Invoke-WebRequest -Method Post -ContentType 'application/ ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Does anyone have experience of doing this before?

1 Like

Hey @wefowit528 This error can happen if you connect to your OT-2 via Wi-Fi, instead of via a cable. For security, we only accept new SSH keys when there’s a direct wired connection between the computer and the OT-2 (a “link-local” connection), not a wireless connection. This is meant to prove that the person trying to add the SSH key has physical access to the OT-2.
Here’s the Github: Connecting to Opentrons using Windows 10/MAC gives "Invoke-Webreuqest: : {"error": "bad-interface", "message": "The endpoint http://127.0.0.1:34000/server/ssh_keys can only be used from local connections"}" · Issue #7533 · Opentrons/opentrons · GitHub