#### "Geben Sie den Inhalt Ihrer Konfiguratonsdatei /etc/netplan/00-installer-config.yaml an und interpretieren Sie diesen?"
#### "Geben Sie den Inhalt Ihrer Konfiguratonsdatei /etc/netplan/00-installer-config.yaml an und interpretieren Sie diesen?"
My netplan configuration file is as follows:
My netplan configuration file (under `/etc/netplan/00-installer-config.yaml`)is as follows:
```
```
network:
network:
...
@@ -21,13 +21,13 @@ network:
...
@@ -21,13 +21,13 @@ network:
version: 2
version: 2
```
```
We can see that there is two interfaces: 'ens18' which is configured with IPv6 address and its gateway (used for internet access), and 'ens19' which has DHCP for IPv4 enabled, and allows connectivity inside H-BRS Netzlab evironment
We can see that there is two interfaces: `ens18` which is configured with IPv6 address and its gateway (used for internet access), and `ens19` which has DHCP for IPv4 enabled, and allows connectivity inside H-BRS Netzlab evironment
### Exercise (3c)
### Exercise (3c)
#### "Testen Sie den ssh-Zugriff über Public-Key-Authentifizierung. Wie haben Sie das gemacht?"
#### "Testen Sie den ssh-Zugriff über Public-Key-Authentifizierung. Wie haben Sie das gemacht?"
Authentication by Public-Key is enabled by default in Ubuntu 22.04 (even on some previous versions). However if it is not working, we should edit the ssh config file in '/etc/ssh/sshd_config' and choosing "yes" for 'PubkeyAuthentication' option
Authentication by Public-Key is enabled by default in Ubuntu 22.04 (even on some previous versions). However if it is not working, we should edit the ssh config file in `/etc/ssh/sshd_config` and choosing "yes" for `PubkeyAuthentication` option
```
```
#Port 22
#Port 22
...
@@ -35,15 +35,12 @@ Authentication by Public-Key is enabled by default in Ubuntu 22.04 (even on some
...
@@ -35,15 +35,12 @@ Authentication by Public-Key is enabled by default in Ubuntu 22.04 (even on some
#ListenAddress 0.0.0.0
#ListenAddress 0.0.0.0
#ListenAddress ::
#ListenAddress ::
.
.
.
.
PubkeyAuthentication yes
PubkeyAuthentication yes <---
.
.
.
.
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
####Testen Sie, dass die Passwortauthentifizierung tatsaechlich abgeschaltet ist. Welche Fehlermeldung erhalten Sie bei einem Login-Versuch mit Passwort?
####Testen Sie, dass die Passwortauthentifizierung tatsaechlich abgeschaltet ist. Welche Fehlermeldung erhalten Sie bei einem Login-Versuch mit Passwort?