GithubHelp home page GithubHelp logo

SSH Key about ssh-action HOT 12 CLOSED

appleboy avatar appleboy commented on May 21, 2024 1
SSH Key

from ssh-action.

Comments (12)

chinedu117 avatar chinedu117 commented on May 21, 2024 125

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.

from ssh-action.

taranvohra avatar taranvohra commented on May 21, 2024 15

Issue resolved. I had to use the contents of the private key.

from ssh-action.

taranvohra avatar taranvohra commented on May 21, 2024 7

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

from ssh-action.

abhisheksoni27 avatar abhisheksoni27 commented on May 21, 2024 6

@taranvohra Can you elaborate what exactly you did to make this work? Do you have the *.pem file pushed to your repo?

from ssh-action.

foremtehan avatar foremtehan commented on May 21, 2024 4

I had to use the contents of the private key.

But we shouldn't share private key? I learned this in school 🤔

from ssh-action.

zakiego avatar zakiego commented on May 21, 2024 2

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.

image

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.

from ssh-action.

quanglochuynh avatar quanglochuynh commented on May 21, 2024 2

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.

image 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.

from ssh-action.

abhisheksoni27 avatar abhisheksoni27 commented on May 21, 2024

Awesome!

I tried that but it didn't quite work. Anyway, thanks a lot.

from ssh-action.

slametkoala avatar slametkoala commented on May 21, 2024

Issue resolved. I had to use the contents of the private key.

are u create ne user for store yus ssh key..? or u just create ssh key for default ec2 user "ubuntu"?

from ssh-action.

usernotnull avatar usernotnull commented on May 21, 2024

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.

from ssh-action.

olandodeflexy avatar olandodeflexy commented on May 21, 2024

Is it possible to use ppk private key? I have done all that is required but I am still getting this error.

from ssh-action.

mrehman11 avatar mrehman11 commented on May 21, 2024

Facing The Same But Fixed as mentioned in #188 Thank you

from ssh-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.