From e7186441126dec0c567e0c817b1622cf1060207e Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 4 Nov 2025 08:19:15 +0100 Subject: [PATCH] board/common: mksshkey: Clean up stray temporary file --- board/common/rootfs/usr/libexec/infix/mksshkey | 1 + 1 file changed, 1 insertion(+) diff --git a/board/common/rootfs/usr/libexec/infix/mksshkey b/board/common/rootfs/usr/libexec/infix/mksshkey index 9cc3db9d..1e6d8013 100755 --- a/board/common/rootfs/usr/libexec/infix/mksshkey +++ b/board/common/rootfs/usr/libexec/infix/mksshkey @@ -18,6 +18,7 @@ echo -e "$PUBLIC" >> "$TMP" echo -e "-----END RSA PUBLIC KEY-----" >> "$TMP" ssh-keygen -i -m PKCS8 -f "$TMP" > "$DIR/$NAME.pub" +rm "$TMP" chmod 0600 "$DIR/$NAME.pub" chmod 0600 "$DIR/$NAME" chown sshd:sshd "$DIR/$NAME.pub"