File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2727 echo "$SSH_PRIVATE_KEY" > ~/.ssh/deployment_key
2828 chmod 600 ~/.ssh/deployment_key
2929 eval "$(ssh-agent -s)"
30- # Use expect to send the passphrase
30+ # Use expect to send the passphrase for the key
3131 expect -c "
3232 spawn ssh-add ~/.ssh/deployment_key
3333 expect \"Enter passphrase for ~/.ssh/deployment_key:\"
4141
4242 - name : Synchronize Code with VM Using rsync
4343 env :
44- RSYNC_RSH : " ssh -i ~/.ssh/deployment_key -o IdentitiesOnly=yes" # Explicitly specify the SSH key
44+ RSYNC_RSH : " ssh -i ~/.ssh/deployment_key -o IdentitiesOnly=yes" # Explicitly specify the SSH key and disable other key attempts
4545 run : |
4646 rsync -avz --checksum --exclude='.git' ./ ${{ secrets.VM_USER }}@${{ secrets.VM_HOST }}:/home/dev/
4747
You can’t perform that action at this time.
0 commit comments