We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1d5ca0 commit 7f161bbCopy full SHA for 7f161bb
1 file changed
load_ssh_private_key
@@ -7,8 +7,8 @@ if [ -z "${SSH_PRIVATE_KEY}" ]; then
7
exit 1
8
fi
9
10
-eval $(ssh-agent -s)
11
-echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add -
12
mkdir -p ~/.ssh
13
chmod 700 ~/.ssh
14
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
+echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
+chmod 600 ~/.ssh/id_rsa
0 commit comments