gitlabhq/gitlabhq — Issue #482: Better SSH-Key Handling
Author: iamwyza
Created: 2012-02-27 21:42:16+00:00
State: open

It'd be nice if the page that loads your SSH keys handled them with more grace. EG: right now it has to be in a very specific format wheras the key's usually have comments wrapped around them which this fails to handle.

EG: it should be able to take something like this and be happy: (not a real key, but a real example of what one might look like)

---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20120124"
BLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEYBLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEYBLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEYBLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEY
---- END SSH2 PUBLIC KEY ----

instead of it having to look like this:

ssh_rsa BLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEYBLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEYBLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEYBLAHLBAHLABHLAHSDFLASHDASUIH:OGIHSF:OHIASF:HAF:OIAHFKEY