From 5055419f0c2790486346cae94dd2dab93a5479d3 Mon Sep 17 00:00:00 2001 From: Rin Date: Fri, 3 May 2024 21:43:47 +0800 Subject: [PATCH] 1 --- dist/index.js | 2 ++ index.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index 6b8ca4c..40e8f8d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31016,6 +31016,8 @@ function ensure_host_ssh_key() { ); } } + // properly set private key permissions + fs.chmodSync(privkey, 0o600); return pubkey; }; diff --git a/index.js b/index.js index db3c8bb..74a8303 100644 --- a/index.js +++ b/index.js @@ -126,6 +126,8 @@ function ensure_host_ssh_key() { ); } } + // properly set private key permissions + fs.chmodSync(privkey, 0o600); return pubkey; };