... | ... | @@ -32,6 +32,10 @@ von hand... irgendwie automatisieren? Ansible? |
|
|
|
|
|
```bash
|
|
|
container# apt install openssh-server # ssh
|
|
|
container# mkdir /root/.ssh/ && chmod 0700 /root/.ssh
|
|
|
container# cat <<EOF > /root/.ssh/authorized_keys
|
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAN0XNm45vH6mu58/X18X+Q0p4XVw/FoAY6EqtRufOmk user
|
|
|
EOF
|
|
|
host# lxc list
|
|
|
+------------+---------+-----------------------+------+------------+----------------+
|
|
|
| NAME | STATUS | IPV4 | IPV6 | TYP | SCHNAPPSCHÜSSE |
|
... | ... | @@ -46,6 +50,9 @@ host# iptables -A PREROUTING -i enp6s0f0 -p tcp -m tcp --dport 22223 -j DNAT --t |
|
|
|
|
|
// regeln permanent speichern, liegen in /etc/iptables/rulesv.4
|
|
|
host# netfilter save
|
|
|
|
|
|
// zugriff mit private key über ssh
|
|
|
notebook# ssh root@m18.uni-weimar.de -p 22223
|
|
|
```
|
|
|
|
|
|
## nginx-Proxy + TLS (Let's Encrypt)
|
... | ... | |