Creating a VM in Azure Portal

  1. Go to

Setting Up VM into your Local Machine

  1. Create VM in GUI

  2. Open WSL and Copy your SSH key in ~/.ssh/ path

    cp <Path-To-Your-Key> ~/.ssh
    
  3. Protect your private key that is downloaded

    chmod 400 ~/.ssh/<Your-Key-Name>
    
  4. Connect to VM via SSH

    ssh -i ssh_key azureUsername@publicOfVM
    
  5. Generate SSH for GitHub

    ssh-keygen -t ed25519 -C "give your github email here"
    

    Accept Default Path and set a Passphrase (Do not Forget)

  6. Copy your SSH key using CAT command & Give the path of Generated Key

    cat ~/.ssh/<Your-Key-Name>.pub
    
  7. Setup SSH in GitHub>Profile → https://github.com/settings/keys

    1. Click New and set a Name
    2. Paste your Public Key copied from above step.
    3. Select Authentication Type
  8. Go to your terminal and paste the following command

    ssh -T [email protected]
    

Setting Up Node using nvm

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04

  1. Go To SSH Terminal and Connect to your VM.

    ssh -i ssh_key azureUsername@publicOfVM
    
  2. 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
    
  3. Test your installation

    node -v
    npm -v
    

Setting up your Project from GitHub

  1. After successful Completion of Setting Up VM into your Local Machine
  2. Go to your Repository on https://github.com