Skip to content

Commit 7f161bb

Browse files
authored
Fix load_ssh_private_key
1 parent b1d5ca0 commit 7f161bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

load_ssh_private_key

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ if [ -z "${SSH_PRIVATE_KEY}" ]; then
77
exit 1
88
fi
99

10-
eval $(ssh-agent -s)
11-
echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add -
1210
mkdir -p ~/.ssh
1311
chmod 700 ~/.ssh
1412
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
13+
echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
14+
chmod 600 ~/.ssh/id_rsa

0 commit comments

Comments
 (0)