Skip to content

Cannot add SSH key to user #974

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
2 of 6 tasks
donbecker opened this issue Feb 18, 2017 · 1 comment
Closed
2 of 6 tasks

Cannot add SSH key to user #974

donbecker opened this issue Feb 18, 2017 · 1 comment
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@donbecker
Copy link

donbecker commented Feb 18, 2017

  • Gitea version (or commit ref): 1.0.1, windows-4.0-amd64
  • Git version: 2.10.2
  • Operating system: Win Server 2016
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Attempting to add an SSH key to a user results in a 505 error.

Log entry:

2017/02/18 11:46:48 [...ters/user/setting.go:359 SettingsSSHKeysPost()] [E] AddPublicKey: addKey: 'ssh-keygen -lf C:/Users/svcgitea/AppData/Local/Temp/761363500/id_rsa.pub' failed with error 'exec: "ssh-keygen": executable file not found in %PATH%': exec: "ssh-keygen": executable file not found in %PATH%

@donbecker
Copy link
Author

The issue was that Gitea process on the server could not find ssh-keygen on the path.

Added the path to the PATH environment variable:

C:\Program Files\Git\usr\bin

Adding SSH key to user now works correctly.

@j-be j-be mentioned this issue Dec 22, 2019
8 tasks
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
@delvh delvh added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed reviewed/invalid labels Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

3 participants