Hetzner cloud administration GUI

Figure 965. Preliminary: Create an ssh key pair Slide presentation
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.

Note

Different implementations like e.g. putty may use different key storage formats.


Figure 966. Create a Hetzner account Slide presentation

Figure 967. Access your project space Slide presentation

Upon confirmation your Hetzner project space sdi_gxy (e.g. sdi_g01 corresponding to group 1) should be accessible.


Figure 968. Create a server Slide presentation
  1. Create a default firewall allowing ping and ssh

  2. Ubuntu latest

  3. Shared vCPU / x86 / CX11 (the cheapest)

  4. Add your personal ssh public key from Figure 965, “Preliminary: Create an ssh key pair ”

  1. Omit volume, labels and cloud config

  2. Note the Networking / Public IPv4 address for later reference

  3. Click »Create & Buy now«


Figure 969. Access your server Slide presentation
  • Ping your server:

    Note

    The IP 91.107.232.156 serves just as a sample value irrespective of your individual actual server IP.

    sdiuser:~$ ping 91.107.232.156
    PING 91.107.232.156 (91.107.232.156) 56(84) bytes of data.
    64 bytes from 91.107.232.156: icmp_seq=1 ttl=49 time=18.3 ms
    64 bytes from 91.107.232.156 ...
  • Login via ssh:

    ssh root@91.107.232.156

Figure 970. Update and reboot Slide presentation
  1. apt update

  2. apt upgrade

  3. reboot


Figure 971. Install a web server Slide presentation
root@topsy:~# apt install nginx

Figure 972. Check local http web access Slide presentation
root@topsy:~# wget -O - 91.107.232.156
--2024-04-07 18:59:13--  http://91.107.232.156/
Connecting to 91.107.232.156:80... connected.
<html>
<head>
<title>Welcome to nginx!</title> ...

Figure 973. External http web access Slide presentation

Point your browser to http://91.107.232.156.

sdiuser:~$ telnet 91.107.232.156 80
Trying 91.107.232.156...

Why is there no answer?


Figure 974. Add port 80 / http firewall rule Slide presentation
sdiuser:~$ telnet 91.107.232.156 80
Trying 91.107.232.156...
Connected to 91.107.232.156.
Escape character is '^]'

Congrats: External Browser access is working now!


Figure 975. Cleaning up! Slide presentation

Caution

This is about $$$ MONEY $$$

  • Delete your server including the IPv4 address.

  • You may delete your firewall