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

Unable to Connect via SSH #4

Open
dasundev opened this issue May 17, 2024 · 4 comments
Open

Unable to Connect via SSH #4

dasundev opened this issue May 17, 2024 · 4 comments

Comments

@dasundev
Copy link

I generated an SSH key using the following command:

ssh-keygen -t ed25519 -C "[email protected]"

After setting up the GitHub Action and running it, I encountered the following error:

[dasun]: Load key "/home/runner/.ssh/access": error in libcrypto
[dasun]: ***@***: Permission denied (publickey).
@LuisEnMarroquin
Copy link
Owner

Hi, it should work with any key supported, and ed25519 should be supported, can you share your workflow file?

Else can compare with this file that I am using to test this repo on every commit: https://github.com/LuisEnMarroquin/setup-ssh-action/blob/main/.github/workflows/ubuntu.yml

@N1ebieski
Copy link

N1ebieski commented Nov 13, 2024

I had the same issue. In my case, the problem was with the new key format. You can recognize such a key by the fact that it has -----BEGIN OPENSSH PRIVATE KEY-----at the beginning.

You need to convert this key by PuTTYgen to the old PEM format. Then it has: -----BEGIN RSA PRIVATE KEY----- and works.

@LuisEnMarroquin
Copy link
Owner

Was it on Windows? I think windows has some limitations regarding key formats

@N1ebieski
Copy link

No. Key was originally generated on Debian 10 by the command: ssh-keygen -t rsa -b 4096 -C "[email protected]".

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