summaryrefslogtreecommitdiff
path: root/_posts/2017-05-16-coreos-installation-on-a-hetzner-server.md
blob: ce3a947be6ec98d4e9f9a3f6e38622cdfcc79e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
layout: post
title: "CoreOS Installation on a Hetzner Server"
description: ""
category: 
tags: []
---
{% include JB/setup %}

- log into the rescue system

    ssh root@{sever-ip}

- run `installimage`

  - choose "Other" -> "CoreOS-XXX"
  - keep the default install.conf (you may have to quit with ESC 0, if F10 does not work)
  - confirm deletion of partitions

* reboot into CoreOS

    reboot

- log into CoreOS (using the same password as for the rescue system)

    ssh root@{sever-ip}

- set the hostname (if you have omitted it in install.conf)

    hostname {hostname}

- change root password

    passwd

- create a password for the `core` user

    passwd core

- login as core user from another console to make sure everything works as expected (and to avoid lockouts)

- disable root login

    - edit /etc/ssh/sshd_config 
    - set PermitRootLogin no
    - restart sshd

        sudo systemctl daemon-reload

- exit root

    exit