Skip to content

Instantly share code, notes, and snippets.

@aubelsb2
Created October 7, 2020 05:40
Show Gist options
  • Save aubelsb2/bae7eaeb454e21deffa2129e629f1d12 to your computer and use it in GitHub Desktop.
Save aubelsb2/bae7eaeb454e21deffa2129e629f1d12 to your computer and use it in GitHub Desktop.

Keep track on what I have done to install node solid (docker) on Azure

WIP

0. Prepare

  • Using an .edu mail will get you 100$ to try things up. If you don't have an .edu mail then follow the registration steps and get some credit for free.
  • The Azure portal: https://portal.azure.com/#home

1. Create azure VM

  • I use the recommended Ubuntu 18 LTS.
  • Just click through the recommended options, but remember to choose a static public IP.

2. Setup the ssh key & ssh config

mkdir ~/.ssh
cp PATH_TO_YOUR_PEM_KEY ~/.ssh

# To make sure we have correct .ssh permissions
# Assuming your key name is node-solid.pem
chmod 400 ~/.ssh/node-solid.pem
chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub

cat <<EOF>>~/.ssh/config
Host node-solid
    User azureuser
    Hostname THE_SACRED_IP
    Port 22
    IdentityFile ~/.ssh/node-solid.pem
EOF

🔥 Now we can connect to azure super fast by ssh node-solid-timo-project

3. Install docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment