Skip to content

Commit 43cbf82

Browse files
committed
deploy_nixos: fix ssh key permission
1 parent 2976c1c commit 43cbf82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deploy_nixos/nixos-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ trap 'rm -rf "$workDir"' EXIT
4747
if [[ -n "${sshPrivateKey}" && "${sshPrivateKey}" != "-" ]]; then
4848
sshPrivateKeyFile="$workDir/ssh_key"
4949
echo "$sshPrivateKey" > "$sshPrivateKeyFile"
50+
chmod 0700 "$sshPrivateKeyFile"
5051
sshOpts+=( -o "IdentityFile=${sshPrivateKeyFile}" )
5152
fi
5253

0 commit comments

Comments
 (0)