+ chmod 0600 id_rsa
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user