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

getKeyFile error: open key.pem: permission denied #312

Open
lmilbaum opened this issue Apr 3, 2024 · 3 comments
Open

getKeyFile error: open key.pem: permission denied #312

lmilbaum opened this issue Apr 3, 2024 · 3 comments

Comments

@lmilbaum
Copy link

lmilbaum commented Apr 3, 2024

The step in the workflow:

     - name: provisioning test environment
        uses: appleboy/[email protected]
        with:
          host: ${{ steps.host.outputs.host }}
          username: fedora
          key_path: key.pem
          script: provision.sh

But, the following does work:

    - run: |
          ssh -T -o StrictHostKeyChecking=no -i key.pem fedora@${{ steps.host.outputs.host }} bash -c ls
@appleboy
Copy link
Owner

appleboy commented Apr 4, 2024

@lmilbaum can you help to try appleboy/ssh-action@master version? Or add the source of key.pem file to the secret key.

@lmilbaum
Copy link
Author

lmilbaum commented Apr 4, 2024

@lmilbaum can you help to try appleboy/ssh-action@master version? Or add the source of key.pem file to the secret key.

Sorry. I can't because I took another approach which doesn't utilize this action.

@debu99
Copy link

debu99 commented May 28, 2024

i got same issue
you can't set chmod 0600 key.pem

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