Invalid SSH Key

ssh

#1

I generated an SSH key on an Ubuntu VM, and am unable to submit it to my resin account, with the error “Invalid Key” when I submit. Generally, the key files have 3 parts, “ssh-rsa”, the key itself, and the user’s email address. I have tried the key alone, and every possible combination of the key with the other two parts to no avail. I was able to get this to work with a key generated on my Macbook, but not on the Ubuntu VM.


#2

Worked around it by adding my ssh key to GitHub and then importing the key from GitHub - just in case anyone else hits this issue.


#3

Hi @dagrooms52 - that sounds weird. It should be the full .pub file that has to be added. How did you generate the key exactly?


#4

I generated the key using the steps outlined in the GitHub SSH key tutorial, this link: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
I followed them exactly on my Mac and on the Ubuntu VM.


#5

Hi. We’ve created an issue to investigate the problem and fix as needed, will get back to you as soon as it’s done.


#6

Hi, we have a fix for the issue, which just got deployed.
Thank you for your report! Best, Thodoris


#7

Thanks all of you for the quick responses and fix!


#8

I’m having the same issue. Generated at home on Windows using Windows Bash - worked fine. Generated using Windows Bash at work - says invalid key. Importing from GitHub works fine.