riesgos / async

0 stars 0 forks source link

access to vm for deployment #79

Open MichaelLangbein opened 1 year ago

MichaelLangbein commented 1 year ago
nbrinckm commented 1 year ago

I try to describe the way that I got access to the VM:

  1. You got a got a mail with a TUMonline-Pincode
  1. Login at https://tum.eduvpn.lrz.de/ with the username from the mail & the password that you set

  2. Create and download a openvpn config file

  1. Add a openvpn script

It could look like this:

#!/bin/bash

# Connect to the TUM eduvpn
# For more details see: https://doku.lrz.de/pages/viewpage.action?pageId=87425299
sudo openvpn --verb 3 --config ${PATH_TO_CONFIG_FILE}

(with the path to the file that you downloaded right now).

  1. Run the script

  2. Try to access the VM

ssh root@138.246.225.182
  1. Create your own account and put it into the docker & sudo group
adduser fancynewuser
adduser fancynewuser docker
adduser fancynewuser sudo
  1. Optional: Switch user and upload your public key
    # on the VM
    su fancyuser
    cd ~
    mkdir .ssh
    # on your local computer
    scp ~/.ssh/id_rsa.pub fancyuser@138.246.225.182:/home/fancyuser/.ssh/authorized_keys

Further documentation:

HugoRosero commented 1 year ago

An alternative way to access (but you still need a VPN for this):

MichaelLangbein commented 1 year ago

Works great for me! Thanks a lot @nbrinckm and @HugoRosero !