laminar-sshkey: done in new system
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 4 seconds
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 4 seconds
This commit is contained in:
parent
e3103db431
commit
7c84b379f6
1 changed files with 0 additions and 16 deletions
|
@ -1,16 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
sshkey="$(mktemp --tmpdir "laminarci-sshkey-pub-XXXXXXX")";
|
||||
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICzYSWsGbWHh+cDheHJSKlCrxYDLwS6SKwVMV9SAaGsO laminar-ci@elessar" >"${sshkey}";
|
||||
|
||||
upload_target="/tmp/laminarci-sshkey-pub";
|
||||
|
||||
COPY "${sshkey}" "${upload_target}";
|
||||
|
||||
RUN "sudo mkdir -p /root/.ssh";
|
||||
RUN_ONCE "cat '${upload_target}' | sudo tee /root/.ssh/authorized_keys";
|
||||
RUN "rm '${upload_target}'";
|
||||
|
||||
# Set permissions
|
||||
RUN "sudo chown -R root:root /root/.ssh";
|
||||
RUN "sudo chmod 0600 /root/.ssh/authorized_keys";
|
Loading…
Reference in a new issue