From 49683a3fa934bace13b11402892205f7cd6b5d56 Mon Sep 17 00:00:00 2001 From: t470p Date: Wed, 8 May 2024 06:37:18 -0500 Subject: [PATCH] + chmod 0600 id_rsa --- dots/bin/deploySshKeys.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dots/bin/deploySshKeys.sh b/dots/bin/deploySshKeys.sh index 7696c4b..10f7d6a 100644 --- a/dots/bin/deploySshKeys.sh +++ b/dots/bin/deploySshKeys.sh @@ -43,6 +43,7 @@ if [[ ${user_input} == "y" ]]; then echo "yes" echo "please, remember the hint: poq.l2" gpg -d ${trg_ssh_dir}/id_rsa.gpg > ${trg_ssh_dir}/id_rsa + chmod 0600 ${trg_ssh_dir}/id_rsa # id_rsa can not be accessible by other users else echo "no worries. you can manually decrypt the file, if needed:" echo "gpg -d id_rsa.gpg > id_rsa"