ssh
This commit is contained in:
parent
77d9cd1915
commit
4ee73188e3
2 changed files with 11 additions and 11 deletions
11
cd-set-ssh
Executable file
11
cd-set-ssh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
mkdir --parents ~/.ssh
|
||||||
|
|
||||||
|
echo "${CD}" > ~/.ssh/id_ed25519
|
||||||
|
unset CD
|
||||||
|
chmod 400 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
|
ssh \
|
||||||
|
-o StrictHostKeyChecking=accept-new \
|
||||||
|
'cd@de.tilde.link' \
|
||||||
|
-- \
|
||||||
|
hostname
|
|
@ -1,16 +1,5 @@
|
||||||
apt-get install --yes 'rsync'
|
apt-get install --yes 'rsync'
|
||||||
|
|
||||||
mkdir --parents ~/.ssh
|
|
||||||
echo '${{secrets.cd}}' > ~/.ssh/id_ed25519
|
|
||||||
chmod 400 ~/.ssh/id_ed25519
|
|
||||||
ls -al ~/.ssh
|
|
||||||
|
|
||||||
ssh \
|
|
||||||
-o StrictHostKeyChecking=accept-new \
|
|
||||||
'cd@de.tilde.link' \
|
|
||||||
-- \
|
|
||||||
hostname
|
|
||||||
|
|
||||||
rsync \
|
rsync \
|
||||||
--archive \
|
--archive \
|
||||||
--delete-before \
|
--delete-before \
|
||||||
|
|
Loading…
Reference in a new issue