-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Do not overwrite authorized_keys when using built in server #2046
Comments
Holy shit, this is bad. Can we please
To help me explain to support: How is gitea even able to take over the SSH daemon? edit: Btw, I clicked that button, as this was suggested in order to make the advertised ssh clone URL work! |
Yes, this is fixed by #3377 |
@lunny This happened with v1.4.3. Thanks for the feedback! It seems I misunderstood how it works then, I was not using the built in SSH server, and locked myself out anyway. |
@noerw #3377 has fixed this actual issue but not hide the rewrite public key item on Admin Panel. But in fact, if you are using internal SSH and you click that button, it will do nothing. see https://github.com/go-gitea/gitea/pull/3377/files#diff-bc1f3a75a0a9d450f654cec20fd672e9R541 |
@noerw you should never be using same account you log into system for any system service |
Description
The admin action for rewriting authorized keys currently overwrites authorized_keys, even when using the built in server.
This should not happen because it may lock users out if running it as their main system user with the same authorized keys for ssh and gitea.
The text was updated successfully, but these errors were encountered: