This commit is contained in:
parent
bce575d263
commit
bc1f51f01d
16
.drone.yml
16
.drone.yml
@ -48,25 +48,27 @@ steps:
|
|||||||
# add dependencies to tmp vm machine
|
# add dependencies to tmp vm machine
|
||||||
- apt-get update && apt-get -y install rsync sshpass
|
- apt-get update && apt-get -y install rsync sshpass
|
||||||
# write the ssh key to disk for rsync handshake to remote server
|
# write the ssh key to disk for rsync handshake to remote server
|
||||||
|
- mkdir -p ~/.ssh/
|
||||||
|
- chmod 700 ~/.ssh
|
||||||
|
- touch ~/.ssh/id_rsync_ed25519
|
||||||
|
- touch ~/.ssh/id_rsync_ed25519.pub
|
||||||
- ssh-keygen -t ed25519 -f ~/.ssh/id_rsa -N ''
|
- ssh-keygen -t ed25519 -f ~/.ssh/id_rsa -N ''
|
||||||
- sshpass -vp $SERVER_PASS ssh-copy-id -i ~/.ssh/id_rsync_ed25519.pub odinzu@45.33.119.101
|
- sshpass -vp $SERVER_PASS ssh-copy-id -i ~/.ssh/id_rsync_ed25519.pub odinzu@45.33.119.101
|
||||||
|
- cat ~/.ssh/id_rsa
|
||||||
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
|
- eval `ssh-agent -s`
|
||||||
#- touch ~/password.txt
|
#- touch ~/password.txt
|
||||||
#- echo -n $SERVER_PASS > ~/password.txt
|
#- echo -n $SERVER_PASS > ~/password.txt
|
||||||
#- echo $SERVER_PASS
|
#- echo $SERVER_PASS
|
||||||
#- cat ~/password.txt
|
#- cat ~/password.txt
|
||||||
-
|
-
|
||||||
|
|
||||||
- mkdir -p ~/.ssh/
|
|
||||||
- chmod 700 ~/.ssh
|
|
||||||
- touch ~/.ssh/id_rsa
|
|
||||||
- touch ~/.ssh/id_rsa.pub
|
|
||||||
#- cat "$RSA_KEY" >> "~/.ssh/id_rsa" <
|
#- cat "$RSA_KEY" >> "~/.ssh/id_rsa" <
|
||||||
#- echo cat $RSA_KEY >> ~/.ssh/id_rsa
|
#- echo cat $RSA_KEY >> ~/.ssh/id_rsa
|
||||||
#- cat "$RSA_PUB_KEY" >> ~/.ssh/id_rsa.pub
|
#- cat "$RSA_PUB_KEY" >> ~/.ssh/id_rsa.pub
|
||||||
#- echo cat $RSA_PUB_KEY >> ~/.ssh/id_rsa.pub
|
#- echo cat $RSA_PUB_KEY >> ~/.ssh/id_rsa.pub
|
||||||
- cat ~/.ssh/id_rsa
|
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
|
||||||
- eval `ssh-agent -s`
|
|
||||||
#- ssh-add
|
#- ssh-add
|
||||||
#- cp /root/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|
#- cp /root/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|
||||||
#- ls -al /root/.ssh/
|
#- ls -al /root/.ssh/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user