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

ssh key not accepted when there is "admin" #114

Open
alecristia opened this issue Jun 15, 2021 · 3 comments
Open

ssh key not accepted when there is "admin" #114

alecristia opened this issue Jun 15, 2021 · 3 comments
Labels

Comments

@alecristia
Copy link

Describe the bug
When adding an ssh key I got this:

image

Git version
irrelevant, this is on the web interface

Operating system
irrelevant, this is on the web interface

Database
irrelevant, this is on the web interface

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://gin.g-node.org/user/settings/ssh
  2. Click on add keys
  3. Scroll down to section to add keys
  4. copy-paste "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDt6ycLCav1NfdQ/4mAX3zVRHv1jvavKZyQOwdTPDiR3tlfpEL1TWQ3c0gF3SU3M/r9Xcm24JB+PscwwJ5rndxy8jqMJnzoT3X5VnzXS+9Y8pQLz6ZrVQpkWk1s6URrAKu7R3S0B608AVZ994cVCto3cYI1fPE+DeRoPBHx8QeP2tvJbCn9XIib6i3HRb31yyPfqY3tfrqwFEhnVu4PW+b0DjTTuTdX8u+gSNqzYU7Mj8LRuOh5Xb8hQtJYnABU1SHlIg2ft4RvRGZN1kl4YYBIExoaj28m0TDUZngXZHiOEoHqXrNw5YHEjTbiGd4B8iocr2OF9CKAKtCNX92Ks2bVuz4fB4spc5hzr8wYuaxo3YhSp80xhtCDshdHnV1sfXdFze2Xh41ijaHsdIv8yf796wVH+d3mTiL/fRTV2pxBAj4lGKJhDY3qsMf15f18EYIIrb0dl8xoeAH4eYdgCJS8o/INzyvOEjLspJWEfzs3z0j7keYoFRrcE3wMG/6IUcc= [email protected]" then click on add key
  5. See error
  6. change admin to not-admin
  7. now you'll be able to add the key

Can you reproduce the bug at https://try.gogs.io?
no, i don't have an account

Additional context
Google Chrome
Version 91.0.4472.101 (Official Build) (x86_64)

@mpsonntag
Copy link
Contributor

mpsonntag commented Jun 16, 2021

Hi alecristia!

Sorry to see that you are having trouble adding ssh keys. The service we are running is a fork of the popular gogs git server.
What you have reported is an issue that has been fixed in the upstream codebase, but unfortunately we currently cannot tell when our running service will catch up to the gogs codebase.

In the meantime an option for you might be to create and add an ssh key with a custom name which can be done by using the command ssh-keygen -C [custom name] where "custom name" would replace the default "[email protected]" in your case.

I hope this already helps, sorry for the inconvenience.

@alecristia
Copy link
Author

thank you, that helps!

should we close this issue, since eventually the upgrade will be done?

@mpsonntag
Copy link
Contributor

Maybe we leave it open for others that encounter the issue but I will slap a "solved" label on it.

Thanks for reporting it, feedback is always appreciated!

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

2 participants