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

Key not installed but no error message thrown #168

Open
ramonheras opened this issue Feb 1, 2021 · 1 comment
Open

Key not installed but no error message thrown #168

ramonheras opened this issue Feb 1, 2021 · 1 comment

Comments

@ramonheras
Copy link

Hi,

I'm running the action on a Linux Ubuntu 20.04.2 machine.
Runner version 2.276.1

The action log indicates that the key has been installed successfully, but it does not work. I have inspected the key installation path ~/.ssh, and all seems right (the files have been copied, etc.). So I continued trying to install the key manually using the files already there by running ssh-add id_rsa, and I got the error message Error loading key "id_rsa": invalid format. Examining the id_rsa file, I have discovered that the action adds a '\n' at the end of the key file that invalidates the key. After removing the line with nano and rerunning ssh-add id_rsa, everything works nicely. I also double-checked that the '\n' wasn't part of the original secret in GitHub. In my particular case, I assume the error is produced by the insertion of that trailing '\n' that invalidates the key.

Cheers,
Ramon

@shimataro
Copy link
Owner

@ramonheras
Very sorry for late response.

Is your key format OpenSSH?
If yes, it might be same cause as #147. Please retry after converting to PEM format as a temporary solution.

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

2 participants