#137 Strip the uploaded SSH key
Closed: Fixed None Opened 8 years ago by bochecha.

I just added an SSH key for my user, and I couldn't git fetch/push.

Then I realized there was a new line character at the end of my SSH key in the field, so I removed that, and now git fetch.push just works.

Please run a quick .strip() when getting the SSH key from the POST data.


More than just a .strip() we should remove all the \n character in the
string, I have seen user doing a wrong copy/paste leading to be unable to
authenticate.

Would you like to work on this?

Thanks!

Login to comment on this ticket.

Metadata