Browse Source

H5: Fix translation

master
Pekka Helenius 5 years ago
committed by GitHub
parent
commit
7dbc103b0f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      exercises/h5.md

+ 8
- 8
exercises/h5.md View File

@ -366,26 +366,26 @@ AuthorizedKeysFile .ssh/authorized_keys
> -v Verbose mode. Causes ssh to print debugging messages about its progress. This is helpful in debugging connection, authentication, and configuration problems. Multiple -v options increase the verbosity. The maximum is 3.
4. Käynnistetään vielä palvelimen SSH-daemon uudelleen komennolla _sudo systemctl restart sshd.service_ (huom! Katkaisee muodostetut SSH-yhteydet)
4. We shall restart server SSH daemon with _sudo systemctl restart sshd.service_ command (note! this interrupts any existing & opened SSH connections)
5. Testataan julkisen avaimen kirjautumismenetelmää asiakaskoneen käyttäjällä, jolla _ssh-keygen_-komento suoritettiin. Käyttäjän pitäisi päästä SSH-palvelimelle sisään ilman salasanaa.
5. We shall test public key authentication from the client computer. Use same user account which you previously used for executing _ssh-keygen_ command on the client computer. The client computer user should be able to login into SSH server without a password.
**EXTRA: Modifying welcome banner**
Muokataan vielä Ubuntun oletuksena olevaa sisäänkirjautumisbanneria seuraavalla bash-skriptillä:
Let's modify default Ubuntu login/SSH banner message by executing the following bash script:
```
#!/bin/bash
# Muokkaa ssh:n sisäänkirjautumisen yhteydessä olevaa banneria
# Modify SSH login banner message
## 00-header-tiedosto:
## 00-header file:
#
sudo sed -i 's?printf "Welcome to %s (%s %s %s)\\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)"?printf "Welcome to %s\\nUptime:
%s\\n\\n" "Server Computer" "$(uptime)"?' /etc/update-motd.d/00-header
## Seuraavien tiedostojen tiedostopäätettä muutetaan
## Voitaisiin myös poistaa nämä tiedostot komennolla 'sudo rm <tiedosto>'
## File extensions of the following files will be modified
## We could also remove these files with 'sudo rm <file>'
#
FILES=( 10-help-text 51-cloudguest 90-updates-available 91-release-upgrade )
@ -394,7 +394,7 @@ for file in ${FILES[@]}; do sudo mv $file $file.old; done
cd
```
Banneritiedostojen sijainti vaihtelee Linux-jakeluilla. Esimerkiksi Arch Linuxilla banneri on tiedosto _etc/motd_.
**NOTE:** Location of the banner file varies between different Linux distributions. For instance, Arch Linux uses banner file _/etc_motd_.
**j)** Install, configure and start sysstat. Use sar command to confirm whether the sysstat package services have been enabled (for instance, log entry "Linux reboot..." exists). Run sysstat a day or two. Afterwards, check computer workload history with sysstat commands sar, iostat, pidstat etc. Analyze the results, i.e. explain the results in detail.
--------------


Loading…
Cancel
Save