![]() `Next, open a terminal in the same location as this file, and launch a new instance referencing this cloud-init file: multipass launch -cloud-init vscode.yaml Replace with the key found in id_rsa.pub, generated in an earlier step. ![]() Copy and paste the below text into a file called vscode.yaml. To speed up the process of linking the new instance with the SSH key from the previous step, we will use a little bit of cloud-init. This is where Multipass comes in.Īssuming you have installed Multipass already, your next step will be to create a new virtual machine, or instance, within Multipass. You could of course use a Linux machine in the cloud, or another physical computer running Linux natively, but the quickest solution for many is to run a Linux VM on their host machine. To create a Linux environment for VSCode, you have a few options. Take note of the location of the generated id_rsa.pub file.Ĭreate a VSCode linux development environment (or several) Press enter to select the default location, then enter a passphrase for the new key pair (or press enter to skip). To generate a new key pair, run this command: ssh-keygen -t rsa Otherwise, you will need to generate a key in order to authenticate your host machine as it accesses the remote development environment. If you already have an SSH key you would like to use for this machine, skip this step.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |