fix permissions on ssh key
This commit is contained in:
parent
3858718041
commit
476b57d2ba
1 changed files with 3 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Set up ssh private key
|
# Set up ssh private key
|
||||||
echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
|
|
||||||
|
echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
# Set up remote host key fingerprint
|
# Set up remote host key fingerprint
|
||||||
echo "git.abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts
|
echo "git.abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts
|
||||||
chmod 644 ~/.ssh/known_hosts
|
chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
Loading…
Reference in a new issue