github-action-ssh icon indicating copy to clipboard operation
github-action-ssh copied to clipboard

Cannot connect to host

Open Pzixel opened this issue 3 years ago • 1 comments

I'm trying to run a script on remote machine. For some reason an action fails.

My workflow looks like this:

- name: Deploy with rsync
  run: rsync -avz ./ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/app/
  
- name: Restart app
  uses: garygrossgarten/github-action-ssh@release
  with:
    command: (cd /home/${{ secrets.SSH_USER }}/app/ && ./run.sh)
    host: ${{ secrets.SSH_HOST }}
    username: ${{ secrets.SSH_USER }}
    privateKey: ${{ secrets.SSH_PRIVATE_KEY}}
    passphrase: ''

Here is output:

img

As you can see rsync is working correctly and it was able to copy all files via SSH. However the next step github-action-ssh fails.

I'm not sure what to do here so here is an issue.

Pzixel avatar May 28 '22 15:05 Pzixel