You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

troubleshooting.en-us.md 2.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ---
  2. date: "2016-11-08T16:00:00+02:00"
  3. title: "Troubleshooting"
  4. slug: "troubleshooting"
  5. weight: 10
  6. toc: true
  7. draft: false
  8. menu:
  9. sidebar:
  10. parent: "Help"
  11. name: "Troubleshooting"
  12. weight: 20
  13. identifier: "troubleshooting"
  14. ---
  15. # Troubleshooting
  16. This page contains some common issues you can run into and their solutions.
  17. ## SSH issues
  18. If you are having issues with reaching your repositories over `ssh` while the
  19. Gitea web front-end and `https` based git operations work fine, consider
  20. looking at the following items.
  21. ```
  22. Permission denied (publickey).
  23. fatal: Could not read from remote repository.
  24. Please make sure you have the correct access rights
  25. and the repository exists.
  26. ```
  27. This error signifies that the server rejected your log in attempt, check the
  28. following things:
  29. * On the client:
  30. * Ensure the public and private ssh keys are added to the correct Gitea user.
  31. * Make sure there are no issues in your remote url, ensure the name of the
  32. git user (before the `@`) is spelled correctly.
  33. * Ensure the public and private ssh keys are available and reachable on the
  34. client machine.
  35. * Try to `ssh git@myremote.example` to ensure that everything is set up
  36. properly.
  37. * On the server:
  38. * Check the permissions of the `.ssh` directory in the home directory of your
  39. `git` user.
  40. * Verify that the correct public keys are added to `.ssh/authorized_keys`.
  41. Try to run `Rewrite '.ssh/authorized_keys' file (for Gitea SSH keys)` on the
  42. Gitea admin panel.
  43. If you get a similar error without the public key part (shown below) then
  44. authentication succeeded, but some other setting is preventing ssh from
  45. reaching the correct repository.
  46. ```
  47. fatal: Could not read from remote repository.
  48. Please make sure you have the correct access rights
  49. and the repository exists.
  50. ```
  51. In this case, look into the following settings:
  52. * On the server:
  53. * Make sure that your `git` user has a usable shell set. You can verify this
  54. with `getent passwd git | cut -d: -f7`, `chsh` can be used to modify this.
  55. * Ensure that the `gitea serv` command in `.ssh/authorized_keys` uses the
  56. proper configuration file.