drone ci ssh test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
oDinZu 2022-05-10 15:55:02 -04:00
parent 2da341584b
commit e3155254d6

View File

@ -42,32 +42,30 @@ steps:
- whoami
- pwd
- ls -al
- ls /
- ls /home
- ls /root
- getent passwd
- git --version && git status
# add dependencies to tmp vm machine
- apt-get update && apt-get -y install rsync sshpass
- sshpass -h
- apt-get update && apt-get -y install rsync #sshpass
#- sshpass -h
# write the ssh key to disk for rsync handshake to remote server
- ssh-keygen -t ed25519 -f ~/.ssh/id_rsa -N ''
- cat ~/.ssh/id_rsa.pub
- eval `ssh-agent -s`
- ssh-add ~/.ssh/id_rsa
- touch ~/password.txt
- echo -n $SERVER_PASS > ~/password.txt
- echo $SERVER_PASS
- cat ~/password.txt
- sshpass -vp $SERVER_PASS ssh-copy-id -i ~/.ssh/id_rsa.pub odinzu@45.33.119.101
#- ssh-keygen -t ed25519 -f ~/.ssh/id_rsa -N ''
#- touch ~/password.txt
#- echo -n $SERVER_PASS > ~/password.txt
#- echo $SERVER_PASS
#- cat ~/password.txt
#- sshpass -vp $SERVER_PASS ssh-copy-id -i ~/.ssh/id_rsa.pub odinzu@45.33.119.101
#- mkdir -p ~/.ssh/
#- touch ~/.ssh/id_rsa
#- touch ~/.ssh/id_rsa.pub
#- echo -nv $RSA_KEY > ~/.ssh/id_rsa
#- echo -nv $RSA_PUB_KEY > ~/.ssh/id_rsa.pub
- echo -nv $RSA_KEY > ~/.ssh/id_rsa
- echo -nv $RSA_PUB_KEY > ~/.ssh/id_rsa.pub
- cat ~/.ssh/id_rsa.pub
- eval `ssh-agent -s`
- ssh-add ~/.ssh/id_rsa
#- cp /root/.ssh/id_rsa.pub ~/.ssh/authorized_keys
- chmod 600 ~/.ssh/id_rsa
#- chmod 600 ~/.ssh/id_rsa
#- ls -al /root/.ssh/
# setup Jekyll permissions and build jekyll site