![]() You can now create new files, edit existing files, and work as usual within the system. This installs the necessary bits on the VM to support remote development. On the first connection you’ll also specify the host type, so choose Linux. Now we can connect! Click F1, click Connect to Host, and select your Linux VM. You could simply specify the identity key with the -i parameter but for me, this often seems to fail so using IdentityFile seems like a more proper solution. Host īy adding IdentityFile you can specify that instead of using a plain password, you’re actually using an identity key (that Azure generated for you, presumably with ssh-keygen). This would be the default approach for Linux VMs in Azure, also. If you’re using a secure way to access your Linux VM, such as an identity file, this is the place to add that. This opens the configuration file for your SSH connections. I use the default, %USERPROFILE%\.ssh\config on Windows 10.Īnd that’s it! But don’t connect yet, click Open Config instead. ![]() Type in the connection command, such as ssh your preferred configuration file. Next, press F1 and type remote, and select Remote-SSH: Connect to Host. #Visual studio code remote ssh development install#Search for Remote, and install Remote – SSH extension. ![]() Click the last icon on the left navigation, or press Ctrl Shift X. If you don’t have it installed, it’s a breeze with winget – just type the following to install: winget install vscodeįirst, we’ll need to install a new extension. To get started, I’ll open the Visual Studio Code. ![]() I configured SSH access from my home IP address to the VM. I provisioned a simple Ubuntu Linux VM in Azure to test this out. Then, Visual Studio Code introduced support for remote development. Before this, before SSH, and before Raspberry Pi was a thing, I obviously used telnet so seeing a terminal is something I’ve grown to both like, and dislike at the same time. Thanks for reading my blog! If you have any questions or need a second opinion with anything Microsoft Azure, security or Power Platform related, don't hesitate to contact me.įor a very long time, I’ve SSH’d to my Raspberry Pi and Linux boxes whenever I need to do something with them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |