-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
SSH Key #6
Comments
Issue resolved. I had to use the contents of the private key. |
@taranvohra Can you elaborate what exactly you did to make this work? Do you have the *.pem file pushed to your repo? |
No don't push the .pem file. Open the file locally, copy its contents (it'll start with ---BEGIN RSA KEY something) then go to your repo settings, add secret and paste the contents there |
Awesome! I tried that but it didn't quite work. Anyway, thanks a lot. |
are u create ne user for store yus ssh key..? or u just create ssh key for default ec2 user "ubuntu"? |
I encountered this problem but in my own situation the problem was solved by copying the entire content of cat ~/.ssh/id_rsa. Starting from and including the comment section -----BEGIN RSA PRIVATE KEY----- ....... to -----END RSA PRIVATE KEY-----. I hope this helps someone. |
Adding to @chinedu117 's answer, this also means don't bother making the string fit one line, copy as is with the line breaks in the key. |
Is it possible to use ppk private key? I have done all that is required but I am still getting this error. |
Facing The Same But Fixed as mentioned in #188 Thank you |
But we shouldn't share private key? I learned this in school 🤔 |
![]() I just realized that when inputting the SSH_KEY with the GitHub Action extension, it condenses it into one line, resulting in an error. When I manually input the secret through github.com, the SSH started working. |
Thank you a lot, that work for me, the GitHub Actions VSCode extension needs to fix that. |
I get the key from the pem file by opening it on terminal |
Check the version you are currently using: uses: appleboy/ssh-action@v1.0.3 and make sure it is the latest version. |
Thanks for replying but there was typo in github secret that time 🙏🏼 |
What was the typo? mine is as followed
when testing in act i get this: [Test EC2 conn./test-connection] ⭐ Run Main Run entrypoint.sh yml:
|
- Add instructions for copying the private key to GitHub Secrets in English, Chinese (Simplified), and Chinese (Traditional) versions of the README. ref: #6 (comment) Signed-off-by: appleboy <appleboy.tw@gmail.com>
I'm trying to use this action to ssh into my AWS EC2 Instance but I keep getting this error,
2019/10/01 09:51:51 ssh.ParsePrivateKey: ssh: no key found
. I'm still not sure what contents do I need to add for the key in github secrets. I have the.pem
private key from AWSThe text was updated successfully, but these errors were encountered: