Ssh – Secure SHell – is a wonderful program that allows you to open a terminal session on another machine and execute commands. It is such a standard appliance that it comes preinstalled in macOS and Windows (verified on Windows 10), and most linux distributions depending on configuration.
To run ssh, you need to first open a terminal on your local
machine. On macOS, there is a program called Terminal in The
/Applications/Utilities
folder (/Program/Verktyg/
in Swedish)
that you can run. On Windows, you can click on the Start Meny,
then simply start typing cmd.exe
and you should be able to
launch the terminal. If you are on Linux, we suspect you are
already there.
Let’s say your UU username is sach1234
, you should be able to
login like this:
$ ssh sach1234@trygger.it.uu.se # <-- this command runs on your local machine
password: ********
... some stuff appears ...
$ whoami # <-- this command runs on trygger!
sach1234
To allow Cloud 9 to connect to your account, you need to add a key
in a file called ~/.ssh/authorized_keys
. When the course is
over, you can remove this key if you like (it will contain the
word Amazon, so will probably be easy to find).
To install the key, follow the instructions from the AU portal. You will look something like this:
ssh sach1234@trygger.it.uu.se "mkdir -p ~/.ssh; curl https://ioopm.course.it.uu.se/api/getAWSKey2?username=sach1234 >> ~/.ssh/authorized_keys"
Simply copy this command (verify you didn’t lose a character in either end!) and paste it into your terminal. When you run this, some stuff will be printed that you can ignore (the progress bar for downloading the key), and then you are all set.
$ ssh sach1234@trygger.it.uu.se "mkdir -p ~/.ssh; curl https://ioopm.course.it.uu.se/api/getAWSKey2?username=sach1234 >> ~/.ssh/authorized_keys"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
mark:NOW YOU ARE ALL DONE!
If you want to verify that everything worked, you can do this:
$ ssh sach1234@trygger.it.uu.se "cat ~/.ssh/authorized_keys"
This will print the contents of your authorized_keys
file, which
should look something like this:
ssh-rsa AAAAB3NzaC1yc2EAAasdfAAACCCFFFFDDdEHks1A4dDBp6YBI73qq2c/Xe+4w1T kgvFwIO7/YECy9ev6RLXIL6dcLnD16MJHkAfSwwcRTMb/W46f0MkkLfqSNe2A1zB5YIbZCd MUuI9I0jYyOwEZdrJ5WY85Bg7c6jsNY8pF5kfdKDJ1BWK9CZk0Qm3TsNNsMbNSQcmcvx4Ah rLyjG0iES2FbwZ46m4zy0cuzLnGVzT8O3nizT/XQ5Za3+oiPqFpsszi/lirwnRoposJUHhY hK9yV57iEPTmQvgg5AfwITyQdjLhdRUqzQ8TsFc+LtebETe/QOqd4TlUUzK5Os0jNMquo6z jr/5eqxGHnVpY0bjJq6ItJsqdkI5Oaq3cmnJYgLm7EPCLBUAYTQZyk7nKr2n9CI+iOvuYzX UNJ3Ywu+YB40PS+9QLPLgSzBXF4CieAvqMNzZ2TzgqnKSEPLp1LT21qtbz7UjoISZOlstxG yd9Hsh0GcXkClEtNrSeJ3CJXaHbydvdMLjVPtLOmHd1rgo9HJ10O/m8LUTK8PHvETkFoBYu 5aTNcL8olIB2r/qH53Q4HvT3hj2h9rC2xoSv/mzx4qsDQRilNinGBthGpTrHuRLLrdiwcD5 5iHNQfykAyJxTxbQwVr2KJLjihPVdhFE0E1JkC9akidUb27ewpbNe5K+B6XqZmI4u7zq6gV bCdNGXGMv57Q== username+060148586416@cloud9.amazon.com
If you don’t see any printout – you should try the steps above again, and check carefully that you did not accidentally made a mistake while copying.
Note that we have randomized usernames for Cloud 9 so you cannot guess. You need to confer with each other.
If you for some reason have trouble logging in to your chosen server, you can change it for another. In the panel where you start your IDE, you can click edit and change the host for something else. Please do not do this unless instructed to by the teachers as we have taken care to load-balance all Cloud 9 instances across the servers at IT.
If instructed to change servers, we will give you new suitable host names.
In the AWS management console where you normally go to start your Cloud9 IDE, there will be a second Cloud9 instance whose name ends in -aws.
The first time you start this -aws server up, you will need to go to the terminal in Cloud9 and run the following two commands to install the course’s tools:
To make space, you should run the following command to uninstall unnecesary programs:
sudo yum remove -y docker mysql55 perl mercurial-python27 ruby20-libs perl-Encode php56 php56-common aws-apitools-elb golang subversion php-pear
To install the tools needed for the course, run the following command:
sudo yum install -y zsh htop valgrind clang6.0-tools-extra.x86_64 lldb.x86_64 doxygen-latex.x86_64 CUnit.x86_64 CUnit-devel.x86_64 http://downloads.sourceforge.net/ltp/lcov-1.14-1.noarch.rpm
We will update this page with instructions for installing Java
1.8. Right now, Java 1.7 is installed which is even older than
Java 1.8. If you have problems with Java 1.7 (there is no reason
to expect you would), before these instructions are issued, please
use the first Cloud9 IDE running on the IT department ThinLinc
servers (e.g. atterbom.it.uu.se
etc.) for the time being.
Note that you will need to re-invite people to your new instance.