Difference between revisions of "SSH Into Your Device"

From Tinkla: Tinkering with Tesla
m (SSH when device is running a version after 0.8.3)
m (SSH when device is running a version after 0.8.3)
Line 5: Line 5:
 
#Enable SSH on your comma two: '''Settings -> Network -> Enable SSH'''
 
#Enable SSH on your comma two: '''Settings -> Network -> Enable SSH'''
 
#Enter your GitHub username for SSH: '''Settings -> Network -> SSH Keys''' (hit '''Remove''' and then '''Add''' if needed).
 
#Enter your GitHub username for SSH: '''Settings -> Network -> SSH Keys''' (hit '''Remove''' and then '''Add''' if needed).
 +
#Obtain the IP of your devices from '''Settings -> Network'''
 +
 +
 +
 +
Host eon2 
 +
  HostName 192.168.3.111
 +
  Port 8022
 +
  IdentityFile ~/.ssh/id_github
 +
  StrictHostKeyChecking no
 +
  
 
For more info visit [https://github.com/commaai/openpilot/wiki/SSH#openssh-or-similar-client the comma wiki]
 
For more info visit [https://github.com/commaai/openpilot/wiki/SSH#openssh-or-similar-client the comma wiki]

Revision as of 20:45, 28 March 2022

SSH when device is running a version after 0.8.3

  1. You need a GitHub account. Make one if you don't already have one.
  2. Enable SSH on your comma two: Settings -> Network -> Enable SSH
  3. Enter your GitHub username for SSH: Settings -> Network -> SSH Keys (hit Remove and then Add if needed).
  4. Obtain the IP of your devices from Settings -> Network


Host eon2

 HostName 192.168.3.111
 Port 8022
 IdentityFile ~/.ssh/id_github
 StrictHostKeyChecking no


For more info visit the comma wiki

SSH When devices is running a version before 0.8.3

  1. Download the private key from the openpilot repo. Save the key file as a text file and name it something like key.pem.
  2. Open a terminal
  3. Run chmod 600 key.pem (otherwise, the system will think the text file is not safe).
  4. Get the IP address of your comma two from Settings > WiFi > Open WiFi Settings > More Options > Options (top right icon) > Advanced (please make sure your comma two and your computer connect to the same WiFi).
  5. Ping the device address from your computer to make sure it is reachable.
  6. Under a Unix/Linux, macOS terminal or Windows 10 with OpenSSH, use the command:
ssh root@<IP address of comma two> -p 8022 -i key.pem