+ chmod 0600 id_rsa

This commit is contained in:
t470p
2024-05-08 06:37:18 -05:00
parent 3eeda32682
commit 49683a3fa9

View File

@@ -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"