Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access to vm for deployment #79

Open
MichaelLangbein opened this issue Apr 18, 2023 · 4 comments
Open

access to vm for deployment #79

MichaelLangbein opened this issue Apr 18, 2023 · 4 comments
Assignees

Comments

@MichaelLangbein
Copy link
Contributor

No description provided.

@MichaelLangbein
Copy link
Contributor Author

  • wiki.tum.de -> seach 03 VPN
  • Use EduVPN

@nbrinckm
Copy link
Contributor

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

  1. You got a got a mail with a TUMonline-Pincode
  • Open the browser at https://campus.tum.de/
  • Click on PIN-Code einlösen (Mitarbeitende)
  • Login with the credentials they sent you
  • Change the password in the webui
  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

  • Go to Einstellungen
  • Expand the "weiter" under "Erstellen"
  • Select MVN Split-Tunnel (Standard)
  • Give it a name
  • Click on "Erstellen und Herunterladen"
  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

  • you can access it with root and the password that hugo shared by mail
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
Copy link

HugoRosero commented Apr 28, 2023

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

  • Go to the following website: https://vm.lrz.de/
  • Click on "vSphere Client"
  • Log in with the credentials of the functional account I shared per email
  • The VM riesgos should be visible once you log in. Otherwise, you can search for it at the search bar on the top left, by typing "riesgos"
  • You should be able to launch the VM and log in as root (or any) user

@MichaelLangbein
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

3 participants