Skip to content

Redmine cuts SSH-Key uploaded by user #185

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

Closed
infinit0s opened this issue May 1, 2014 · 10 comments
Closed

Redmine cuts SSH-Key uploaded by user #185

infinit0s opened this issue May 1, 2014 · 10 comments
Assignees
Labels

Comments

@infinit0s
Copy link

Hello

I have found a problem that is quite irritating. On the user account page where you paste your deploy ssh-key, when you paste your .pub and click save - and then view the key (either on redmine or on server) it is actually cut in half ??

i.e.

The generated key on my windows machine inside .ssh looks like this

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArPAhHP5+5eeiV/W6t4zUvGTPDp/e65lLVCq/180WiTMZJ5jOj+/lnrC/AF4LRlawr2mXUIOgf5i8QM0vNuoC+2oGEz7oymZJxS6fQmWfYz8fG2AXfsXjVwnlk9itp3IYMFXODYFTrgNSwxYHVF2j/4HYnzc7KFId6C9o/+hzK+LAae/1SufFd18nwJhSQmPwDBIX0dW6N/nbQ7hOkJFOQzHIh7D3KdP3KyhobsKOa1Q1zM3TIvOp7nzVcr416SNfxCYAw9Vs0v7X1L+6sD2x5Jkej5xYbJwYSIdKkgtTCPSBs7zG9Q05hHtSe7kOh/VJfWroUKn1nvxHXe/rbw421w== Maciek@MACIEK-PC

When i paste the content of the public key into redmine it generate this file
[email protected]

Content of this looks like this::

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArPAhHP5+5eeiV/W6t4zUvGTPDp/e65lLVCq/180WiTMZJ5jOj+/lnrC/AF4LRlawr2mXUIOgf5i8QM0vNuoC+2oGEz7oymZJxS6fQmWfYz8fG2AXfsXjVwnlk9itp3IYMFXODYFTrgNSwxYHVF2j/4HYnzc7KFId6C9o/+hzK+LAae/1SufFd18nwJhSQmPwDBIX0dW6N/nbQ7hOkJFOQzHIh7D

so it is cut ? is there a reason behind this ?. Everytime i want to add a key i actually have to manually edit the key on the server, which is a bit pain in the ass tbh.

Thank you

@n-rodriguez n-rodriguez self-assigned this May 1, 2014
@n-rodriguez n-rodriguez added the bug label May 1, 2014
@n-rodriguez
Copy link
Contributor

Hi!
Thanks for your feedback.

I have found a problem that is quite irritating.

This is called a bug...

so it is cut ? is there a reason behind this ?

The bug?

Everytime i want to add a key i actually have to manually edit the key on the server, which is a bit pain in the ass tbh.

That's the purpose of a bug...

Which version of the plugin are you running?

@infinit0s
Copy link
Author

Hello Rodiguez

Well it may not be a bug but a hidden feature you never know until you ask :). Yeah anyway the plugin version is 0.7.2, installed about 2 weeks ago

@n-rodriguez
Copy link
Contributor

This is weird... The field format should be text... Can you check this?

@infinit0s
Copy link
Author

I have wrote a quick script and it seems like the maximum number of characters allowed in the field is 255.

@rkeevil
Copy link

rkeevil commented May 1, 2014

This is what was happening in #183

@infinit0s
Copy link
Author

Has that been solved than ?, should i re-install plugin ?

@rkeevil
Copy link

rkeevil commented May 1, 2014

Take a look at your 'gitolite_public_keys' database table, and check the type of the 'key' column

@infinit0s
Copy link
Author

I have checked and that seems to be the problem, the Key field specifies that char limit is 255

@infinit0s
Copy link
Author

Ok so i changed the field size - so that is a temp fix for this bug, however this should be addressed for further releases i believe :)

Aside from that this plugin rocks ;) !

@n-rodriguez
Copy link
Contributor

This is fixed in commit ae48a33.

Btw, be sure to use a stable branch (or a tarball release) and not the devel (devil?) branch ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants