We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2976c1c commit 43cbf82Copy full SHA for 43cbf82
deploy_nixos/nixos-deploy.sh
@@ -47,6 +47,7 @@ trap 'rm -rf "$workDir"' EXIT
47
if [[ -n "${sshPrivateKey}" && "${sshPrivateKey}" != "-" ]]; then
48
sshPrivateKeyFile="$workDir/ssh_key"
49
echo "$sshPrivateKey" > "$sshPrivateKeyFile"
50
+ chmod 0700 "$sshPrivateKeyFile"
51
sshOpts+=( -o "IdentityFile=${sshPrivateKeyFile}" )
52
fi
53
0 commit comments