From cff67c76cbb0684fe3fc93a19d66592ac5c46dae Mon Sep 17 00:00:00 2001 From: hugobuddel Date: Sat, 6 Sep 2025 14:00:07 +0200 Subject: [PATCH] Use full path when specifying ssh key file (#669) Using a `~` apparently does not work with `ssh-keygen`: ``` $ ssh-keygen -t ed25519 -a 100 Generating public/private ed25519 key pair. Enter file in which to save the key (/home/knud/.ssh/id_ed25519): ~/.ssh/id_ed25519_codeberg Enter passphrase for "~/.ssh/id_ed25519_codeberg" (empty for no passphrase): Enter same passphrase again: Saving key "~/.ssh/id_ed25519_codeberg" failed: No such file or directory ``` Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/669 Reviewed-by: Robert Wolff Co-authored-by: hugobuddel Co-committed-by: hugobuddel --- content/security/ssh-key.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/security/ssh-key.md b/content/security/ssh-key.md index 2b67983..c58a8f8 100644 --- a/content/security/ssh-key.md +++ b/content/security/ssh-key.md @@ -43,7 +43,7 @@ your laptop and your office PC you should generate separate keys for each machin ssh-keygen -t ed25519 -a 100 ``` - 3. This time, enter a new filepath when prompted (e.g., `~/.ssh/id_ed25519_codeberg`) to avoid overwriting the + 3. This time, enter a new filepath when prompted (e.g., `/home/knut/.ssh/id_ed25519_codeberg`) to avoid overwriting the existing key. 4. You will be asked for a passphrase; enter one if you'd like, or leave the prompt empty.