Prerequsites
- The board has an updated Ubuntu image:
- The board is connected to the internet.
Step 1 — Enable SSH / Locate IP Address
- Connect to the device using a serial port, see Qualcomm docs: Configuring Ubuntu on the device (docs for RB3, but same apply to Rubik Pi 3).
-
Log in over the console, the default username is
ubuntuand the default password is alsoubuntu. - Ensure the network is set up (Ethernet or Wi-Fi).
-
Find the board’s IP address. For example via:
Step 2 — Install / Enable Remote ‑ SSH Extension in VS Code
On your local machine:- Open VS Code.
- Go to Extensions.
- Search for Remote ‑ SSH (by Microsoft) and install it.
Step 3 — Add the Board as an SSH Host in VS Code
- Open the Command Palette in VS Code (F1 or Command+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux).
-
Run
Remote‑SSH: Add New SSH Host... -
Enter the SSH connection string, e.g.:
Optional: If you are using a key, you can include the identity file:
-
Choose which SSH config file to use (usually
~/.ssh/config). VS Code will insert an entry for your board. Example config snippet:
Step 4 — Connect to the Board via VS Code
- In VS Code, open the Command Palette again →
Remote‑SSH: Connect to Host... - Select your host (e.g.
ubuntu@board-ip-addressor the name you gave in the SSH config). - If prompted, select the platform of the remote.
- After a short wait, VS Code will install the VS Code Server onto the board automatically. The status will be shown in the lower status bar.
- Once connected, you can use File → Open Folder… to browse files on the board, open terminals (these will run on the board), and install extensions on the remote host as needed.
Troubleshooting
-
VS Code Server uses excessive RAM: Running many VS Code extensions on the remote host can consume large amounts of memory, leading to out-of-memory (OOM) errors and random network dropouts
- Solution: Disable or selectively enable extensions on the remote host to reduce memory usage
-
SSH connection fails: Board not reachable / wrong IP / SSH not running
-
Solution: Check network, run
ssh ubuntu@IPfrom terminal, verify the board’s network tools are updated and working over serial connection e.g.
-
Solution: Check network, run
-
Host platform detection incorrect: VS Code guesses wrong (e.g. ARM vs x86)
- Solution: Manually set
remote.SSH.remotePlatformin VS Code settings
- Solution: Manually set
Optional: Use SSH Key‑Based Authentication
To avoid typing passwords:-
On your local machine, generate an SSH keypair if you don’t have one:
-
Add the public key to your board:
- Confirm that you can SSH in without a password.
- Update your VS Code SSH configuration to refer to this key (as in Step 3).

