MISC-TN-016: Visual Studio Code and SSH remote development on Mito8M SoM
|This Technical Note was validated against specific versions of hardware and software. What is described here may not work with other versions.|
History[edit | edit source]
|1.0.0||September 2020||First public release|
Introduction[edit | edit source]
This Technical Note (TN) shows how this platform can be set up to enable SSH remote development with Visual Studio Code (VSC for short).
Testbed[edit | edit source]
Host[edit | edit source]
Regarding the development host, Ubuntu 18.04 distribution was used.
After installing Visual Studio Code Insiders
Target[edit | edit source]
For convenience, an Armbian Buster distribution was used on the target. As such, the software configuration is like the one described in this article.
In order to enable the connection with VSC, it is mandatory to set up the SSH server to allow passwordless login for the user(s) utilized for the remote development sessions. In this example, the user
armbian will be used. For more details on this, please see for instance this page.
Testing[edit | edit source]
First of all, the connection with the target has to be established (in this case, 192.168.0.81 is the IP address assigned to Mito8M):
In the "Output" box, it is possible to see what is going on during the connection process:
Once the connection is working, it is also possible to get a target's terminal inside VSC:
When connecting to the target for the first time, VSC will download to the target the VS Code Server, which is required for the remote development sessions.
Of course, one can navigate the target's directories directly as well:
The following screenshot shows a remote debugging session of a simple Python program that is stored on the target's file system: