Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to host #31

Open
Pzixel opened this issue May 28, 2022 · 1 comment
Open

Cannot connect to host #31

Pzixel opened this issue May 28, 2022 · 1 comment

Comments

@Pzixel
Copy link

Pzixel commented May 28, 2022

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.

@Pyrrha
Copy link

Pyrrha commented Mar 27, 2024

I encountered the same issue today, after a server update.
The issue we encountered was after an upgrade of our cluster. In logs we encountered non-compatibles ciphers algorithms. This could be explained by no-update of this action since 2022.

My recommandation is to switch over another one, such as following:
👉 appleboy/ssh-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants