Add laminar ssh key
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds

This commit is contained in:
Starbeamrainbowlabs 2021-11-26 22:15:06 +00:00
parent 90780d2b52
commit 1ba923e551
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 16 additions and 0 deletions

View file

@ -120,6 +120,10 @@ if ask_yesno "Install Docker?"; then
source ./steps-config/10-docker.sh;
fi
if ask_yesno "Add Laminar CI SSH public key to root authorized_keys?"; then
source ./steps-config/80-laminar-ssh.sh;
fi
###
# Autonomous config tasks

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
task_begin "Adding Laminar CI SSH key";
mkdir -p /root/.ssh;
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICzYSWsGbWHh+cDheHJSKlCrxYDLwS6SKwVMV9SAaGsO laminar-ci@elessar" >>/root/.ssh/authorized_keys;
# Set permissions
sudo chown -R root:root /root/.ssh;
sudo chmod 0600 /root/.ssh/authorized_keys;
task_end "$?";