Create VM in GUI
Open WSL and Copy your SSH key in ~/.ssh/ path
cp <Path-To-Your-Key> ~/.ssh
Protect your private key that is downloaded
chmod 400 ~/.ssh/<Your-Key-Name>
Connect to VM via SSH
ssh -i ssh_key azureUsername@publicOfVM
Generate SSH for GitHub
ssh-keygen -t ed25519 -C "give your github email here"
Accept Default Path and set a Passphrase (Do not Forget)
Copy your SSH key using CAT command & Give the path of Generated Key
cat ~/.ssh/<Your-Key-Name>.pub
Setup SSH in GitHub>Profile → https://github.com/settings/keys
Go to your terminal and paste the following command
ssh -T [email protected]
nvmhttps://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04
Go To SSH Terminal and Connect to your VM.
ssh -i ssh_key azureUsername@publicOfVM
Run the following Commands to install nvm and then node
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh> | bash
source ~/.bashrc
nvm install node
Test your installation
node -v
npm -v