Comments (12)
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.
Issue resolved. I had to use the contents of the private key.
from ssh-action.
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.
@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.
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.
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.
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.
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.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.
Thank you a lot, that work for me, the GitHub Actions VSCode extension needs to fix that.
from ssh-action.
Awesome!
I tried that but it didn't quite work. Anyway, thanks a lot.
from ssh-action.
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.
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.
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.
Facing The Same But Fixed as mentioned in #188 Thank you
from ssh-action.
Related Issues (20)
- ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain HOT 12
- ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain HOT 4
- Image not building HOT 2
- Error: missing server host HOT 6
- Command not recognised HOT 4
- Deployment completed but nothing happens on my vps HOT 3
- (Multiple hosts) how to find out on which host the command is being executed. HOT 1
- Error in preparation before connecting to ssh HOT 10
- Connection refused HOT 5
- Downloading action fails HOT 5
- i/o timeout HOT 12
- feature request: pass common options via variables/secrets by default
- SSH connection failing with "ssh: handshake failed: read tcp 172.17.0.2:54510->***:22: read: connection reset by peer" HOT 1
- getKeyFile error: open key.pem: permission denied HOT 2
- Feature request: Support TOTP SSH 2FA authentication
- ssh: handshake failed: EOF
- Error: missing server host when called from `workflow_call` HOT 4
- Unable to run bash script with master branch version HOT 9
- can't connect without a private SSH key or password HOT 2
- Running without stop HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssh-action.