This commit is contained in:
parent
ebaa9f9ff3
commit
4273fd6e66
1 changed files with 2 additions and 1 deletions
3
.github/rsync.sh
vendored
3
.github/rsync.sh
vendored
|
@ -3,12 +3,13 @@
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
apt-get update -y && apt-get install -y rsync openssh-client keychain
|
apt-get update -y && apt-get install -y rsync openssh-client keychain tee
|
||||||
|
|
||||||
# README.md /tmp/ files.l3d.ch files ./secret_ssh_key
|
# README.md /tmp/ files.l3d.ch files ./secret_ssh_key
|
||||||
printf "Add SSH Private Key"
|
printf "Add SSH Private Key"
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
|
cat $5 | sha256sum
|
||||||
mv $5 ~/.ssh/id_ed25519
|
mv $5 ~/.ssh/id_ed25519
|
||||||
chmod 400 ~/.ssh/id_ed25519
|
chmod 400 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -t ed25519 $3 | tee -a ~/.ssh/known_hosts
|
ssh-keyscan -t ed25519 $3 | tee -a ~/.ssh/known_hosts
|
||||||
|
|
Loading…
Reference in a new issue