Skip to content

Commit 6d2802e

Browse files
authored
Update main.yml
1 parent 584d299 commit 6d2802e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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:\"
@@ -41,7 +41,7 @@ jobs:
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

0 commit comments

Comments
 (0)