Hetzner cloud administration GUI
-
Sign up at https://accounts.hetzner.com/signUp optionally activating 2-factor authentication. ID card may be required, but no payment
-
Publish your Hetzner account's username (e.g. the registration e-mail ) to your SDI course's group at https://learn.mi.hdm-stuttgart.de.
-
Upon confirmation by your lecturer a Hetzner project space e.g. g01 corresponding to your group should be accessible after login.
No. 3
Your first server
Q: |
|
-
No updates, just (likely) outdated installation image
-
Password based logins being notoriously prone to attacks.
Solution: Use public/private key based ssh login.
-
There is no firewall yet restricting network access. Insecurely configured supplementary software components e.g. database servers may lead to disaster.
Two choices:
-
Cloud provider level centralized firewall.
-
Host local firewall, e.g. Ufw.
-
sdiuser@martin-pc-dachboden:~$ ssh-keygen -t ed25519 ❶ Generating public/private ed25519 key pair. Enter file in which to save the key (/home/sdiuser/.ssh/id_ed25519): Created directory '/home/sdiuser/.ssh'. Enter passphrase (empty for no passphrase): ❷ Enter same passphrase again: Your identification has been saved in /home/sdiuser/.ssh/id_ed25519 ❸ Your public key has been saved in /home/sdiuser/.ssh/id_ed25519.pub ❹
Create an elliptic rather than default RSA type key. |
|
Security aware folks will choose a decent passphrase protecting the private key being generated. |
|
The generated private key. |
|
The generated public key. |
No. 4
Improve your server's security!
Q: |
Re-create your Your first server server solving (some of) its security flaws.
|
Caution
This is about $$$ MONEY $$$
-
Delete your server including the IPv4 address.
-
You may optionally delete your firewall.