This VSCode Extension is a MUST for Developers...
Vložit
- čas přidán 31. 05. 2024
- This VSCode Extension is a MUST for Developers... (remote SSH) #vscode #homelab #development
JOIN MY COMMUNITY!: / discord
Please do not hesitate to ask a question!
Remote SSH Extension docs by Microsoft:
code.visualstudio.com/docs/re...
code.visualstudio.com/docs/re...
If you're missing ssh-keygen on Windows:
phoenixnap.com/kb/generate-ss...
Additional ssh-keygen related issues & solutions:
superuser.com/questions/15698...
stackoverflow.com/questions/6...
Timestamps:
Intro 0:00
Demo 0:22
Use-cases 1:00
Tutorial 2:13
Creating LXC 2:27
Ubuntu Setup 3:28
SSH Setup 4:51
VSCode Setup 9:22
In Action 11:20
Outro 12:55
P.S.
I don't hate actually VIM... I actually want to give it a fair shot some day :) - Jak na to + styl
Join the official homelabd discord 😎discord.gg/9cpdanZCq9 😎
You can also install the vscode cli on the remote machine and make a remote tunnel, you just connect it to your account and you are good to go
Great suggestion
brother. we need you to be consistent. please.
I’ll try my best, brother.
Why do you copy the SSH key manually instead of just using ssh-copyid?
Last I checked, powershell doesn’t support ssh-copyid. There are scripts out there that you can download which mimic the command but I just took the route of copying the ssh key manually so that I can keep it simple for the audience.
@@homelabd I see, thanks! I'm using mostly WSL for command-line stuff nowadays and didn't notice you were using PowerShell in the video.
Is that a must? What about Termius? Do i miss smthing?
Yes, the vscode extension allows you to act as if vscode is installed on the remote machine... because it is. VSCode ssh will install a thin "cli" client on the remote machine.
You can install extensions. Work in the scope of a project. One-off edits to any file you like. You can even add *minimal* configuration to have vscode to act as the $EDITOR for any command.
The same goes for any of the remote tools in "ms-vscode-remote.vscode-remote-extensionpack" (extension id). WSL: yes. SSH: yes. Tunnels: yes. Devcontainers: yes! You can even nest connections. Want to connect to a devcontainer on a remote machine? You can do that!