From bc3eb0a9636ddcd6280ae4036f5ffae56117e152 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Mon, 2 Dec 2024 21:32:28 +0100 Subject: [PATCH] Remove superfluous chmods ssh-keygen already cares about the permission bits. Adding another chmod 600 on top of it is a noop --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 1aca7d4..b56814c 100644 --- a/README.md +++ b/README.md @@ -86,13 +86,10 @@ used flakes: # ssh-host keys install -d -m755 "$temp/etc/ssh" ssh-keygen -o -t rsa -a 100 -N "" -b 4096 -f "$temp/etc/ssh/ssh_host_rsa_key" - chmod 600 "$temp/etc/ssh/ssh_host_rsa_key" ssh-keygen -o -t ed25519 -a 100 -N "" -f "$temp/etc/ssh/ssh_host_ed25519_key" - chmod 600 "$temp/etc/ssh/ssh_host_ed25519_key" # initrd key install -d -m755 "$temp/etc/secrets/initrd" ssh-keygen -o -t ed25519 -a 100 -N "" -f "$temp/etc/secrets/initrd/ssh_host_ed25519_key" - chmod 600 "$temp/etc/secrets/initrd/ssh_host_ed25519_key" ``` 1. existing host