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

Command failed: ssh-add - #54

Closed
pablosproject opened this issue Nov 27, 2020 · 3 comments
Closed

Command failed: ssh-add - #54

pablosproject opened this issue Nov 27, 2020 · 3 comments

Comments

@pablosproject
Copy link

Hi, I have been having issue today with this error Command failed: ssh-add -. I have been using this action for long time and never had a problem, could you help me debug what's wrong?

Here my workflow file:

name: Test Registry packace

on:
  push:
    branches:
      - master
  repository_dispatch:

jobs:
  publish:
    runs-on: ubuntu-latest
    name: Publish on the server
    steps:
      - name: Check out the repo
        uses: actions/checkout@v2.3.4

      - name: Login to GitHub Packages Docker Registry
        uses: docker/login-action@v1
        with:
          registry: docker.pkg.github.com
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Set SSH key for remote host
        uses: webfactory/ssh-agent@v0.4.1
        with:
          ssh-private-key: ${{ secrets.DO_SSH_KEY }}

      - name: Create a docker context for remote machine
        run: docker context create digital_ocean --docker="host=${{secrets.DO_HOST}}"

      - name: Launch new configuration
        run: docker-compose --context digital_ocean -f docker-compose.prod.yml up -d --build --force-recreate

      - name: Logout from docker
        run: docker logout

And here the error I got.

Screenshot 2020-11-27 at 21 02 27

@ngood97
Copy link

ngood97 commented Nov 30, 2020

Is it possible that the SSH key you're using has a password? That was the problem I had when this error appeared.

@pablosproject
Copy link
Author

You were right, I put the wrong key. Sorry for the issue, closing it immediately.

@fluffball3
Copy link

wow it worked when i made new ssh key with no passphrase. thx guys

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

3 participants