Replies: 2 comments
-
Check SSH Key Permissions: Verify SSH Key Content: Verify Secrets: You should be able to use what i put below for this:
Ensure that the public key associated with the private key you're using is added to the ~/.ssh/authorized_keys file on your EC2 instance for the specified user (ubuntu in your case). The public key should match the one generated from private_key. You also want to confrm that the GitHub Actions runner environment has the necessary permissions to read the private key file (private_key). Ensure that no typos or issues exist in the workflow file. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hey Team,
I am trying to run a github action pipeline and previously I Used the same pipeline for other project and its work but now I am deploying the same pipeline with new project and edit the relevant changes but it does not work, always giving error and from 3-4 days trying the same but not getting fixed.
Previous pipeline:
name: Deploy to Amazon EC2
on:
push:
branches:
- main
jobs:
Deploy:
name: Deploy
runs-on: ubuntu-latest
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
@: Permission denied (publickey).
Please help me with this issue.
Beta Was this translation helpful? Give feedback.
All reactions