change setting up git: don't use agent, directly write to ~/.ssh
This commit is contained in:
parent
e8fedd07a0
commit
3858718041
1 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
|||
set -e
|
||||
eval $(ssh-agent -s)
|
||||
echo "$DEPLOY_SSH_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||
|
||||
# Set up ssh private key
|
||||
echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
|
||||
# Set up remote host key fingerprint
|
||||
echo "git.abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
|
||||
|
|
Loading…
Reference in a new issue