Logging on to Cloud system

From 22126
Jump to navigation Jump to search

Overview

In this exercise, we will prepare our computers to log on to our very own cloud system on Computerome. This is done via a Virtual Private Network (VPN).


Student accounts

To be able to perform the exercises and project you will need an account to log in to the cloud computers. Open the google doc, find student id and determine which server you need to use. This will be your server that you must use for the rest of the course.

User ID/username

Your cloud username or user ID is one entered in the username column (ex: s123456).

IP address

Here are the IP addresses:

server IP
server1 192.168.63.58
server2 192.168.63.59
server3 192.168.63.62


Password

The password is initially the same as the DTU one. Remember: If you lose the password we can not help you! Check with DTU.

2 factor authentication

You will be prompted for a 2-factor authentication code. If you have not set it up with AIT, go to: https://account.activedirectory.windowsazure.com/proofup.aspx?proofup=1


Setting up your own computer/laptop

Make sure you are connected to the internet.
Video: How to download and install VPN. How to connect to the Metagenomic cloud servers.


Windows computer

VPN client

First, install an OpenVPN client. Download the necessary configuration file for our course cloud servers here and the VPN client program here

Terminal

Secondly, install MobaXterm. Download here Once installed you must create an ssh session in Mobaxterm and log on to your cloud server (Look at the Google docs depending on user ID and use the IP above). If you cannot seem to access the servers, you might need to run the OpenVPN client as administrator



Mac computer

VPN client

Download Tunnelblick (the stable version): https://tunnelblick.net/downloads.html

Direct download link: https://tunnelblick.net/release/Tunnelblick_3.7.9a_build_5321.dmg

Download the configuration file: here

Put the file in a directory of your own choice

Right-click on the file. Choose "open with" --> "TunnelBlick" Or Choose "open with" --> "Other.." Chosse "Enable: All Apllications" Click on "TunnelBlick"

Click on the TunnelBlick sign in the top bar of your computer (the same bar that shows your WiFi/Battery/Clock) Choose "Connect Cloud_590"

Now you should have acces to the Cloud.

Terminal

Open your terminal. It is located in: /Applications/Utilities. Or search for "Terminal"

Depending on the server you will be using (see the google sheet), write:

ssh -XC [USER ID]@[ID ADDRESS]

replace the [USER ID] with the username you have been assigned to and [ID ADDRESS] is the IP of your server (see above).

Enter the password..

Open the "XQuartz" and "Terminal" in the "Applications/Utilities" folder. You can close the window that the XQuartz program opens, but leave the program running in the background. If you dont have XQuartz installed you can install it from here. In the terminal write the command below and enter your password when asked for it. Depending on what you have installed you may have to install "Developer Tools" from Apple. You can also install the program "iTerm2" which is a very neat terminal.
Log on to your cloud server using ssh and your cloud username (studXXX) and password (see above).



Ubuntu/Linux

VPN client

On Ubuntu, use:

sudo apt update
sudo apt install openvpn

for other releases, please see the following: VPN Software Repository & Packages. The config file is here. Then write:

sudo openvpn pfSense_DTU-UDP4-1195-metagenomic-02-config.ovpn


Terminal

Open your terminal and ssh using:

ssh -XC [USER ID]@[ID ADDRESS]