From 68cd68f56ebdf2393ae967efd79801feeae7d7f6 Mon Sep 17 00:00:00 2001 From: mo8it Date: Fri, 18 Aug 2023 05:44:42 +0200 Subject: [PATCH] Done day 5 --- src/day_5/README.md | 4 +++- src/day_5/notes.md | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/day_5/README.md b/src/day_5/README.md index db28ba0..145fb82 100644 --- a/src/day_5/README.md +++ b/src/day_5/README.md @@ -1,3 +1,5 @@ # Day 5 -Coming soon... +In this day, we will learn how to connect to servers using SSH and work on them. + +We will also learn how to use containers in Linux so that will be able to host your own website at the end! diff --git a/src/day_5/notes.md b/src/day_5/notes.md index e6dbc1c..4aa50b5 100644 --- a/src/day_5/notes.md +++ b/src/day_5/notes.md @@ -20,9 +20,12 @@ ssh-keygen -t ed25519 -C "COMMENT" Leave blank to take default for the prompt `Enter file in which to save the key (/home/USERNAME/.ssh/id_ed25519)`. -Then enter a passphrase for your key. **You should not leave it blank!** +Then, you can enter a passphrase for your key. +To keep it simple while learning, we will not add one now. +Press enter twice to not use a passphrase. +**But you should use a passphrase when you work with real servers!** -### Add public key to server +### Add the public key to the server ```bash ssh-copy-id -i ~/.ssh/id_ed25519.pub HOST @@ -212,5 +215,4 @@ sudo loginctl enable-linger USERNAME Options: - `-v`, `--volume`: `SRC_PATH:DEST_PATH:L`. Label should be one of `z`, `z,ro`, `Z` or `Z,ro`. -- `--label "io.containers.autoupdate=registry"` for `podman auto-update` - `-p`, `--publish`: `SERVER_PORT:CONTAINER_PORT`