Skip to content
Snippets Groups Projects
Commit bef3c48a authored by Edisson Andres Zurita Hidalgo's avatar Edisson Andres Zurita Hidalgo
Browse files

Update prak/pr01/README.md

parent 2af66891
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#### "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.
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
``` ```
...@@ -63,9 +60,9 @@ UsePAM no ...@@ -63,9 +60,9 @@ UsePAM no
### Exercise (3e) ### Exercise (3e)
####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?
There is an error regarding Public Key There is an error regarding Public Key:
``` ```
ssh azurit2s@tazc.de ssh azurit2s@tazc.de
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment