Got "fatal: Could not read from remote repository" when pull from windows repository use ssh. #2799

Closed
opened 2025-11-02 04:48:53 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @fftyjw on GitHub (Jan 23, 2019).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • [√ ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [ √] No
    • Not relevant
  • Log gist:

Description

I use gitea on windows with "START_SSH_SERVER" set to true. But when I pull my repository. I got the following error:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The Troubleshooting section in gitea document only give some checklist for linux, but none for windows.

Screenshots

Originally created by @fftyjw on GitHub (Jan 23, 2019). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [√ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ √] No - [ ] Not relevant - Log gist: ## Description I use gitea on windows with "START_SSH_SERVER" set to true. But when I pull my repository. I got the following error: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. The Troubleshooting section in gitea document only give some checklist for linux, but none for windows. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/staleissue/needs-feedback labels 2025-11-02 04:48:53 -06:00
Author
Owner

@gfwing commented on GitHub (Jan 24, 2019):

  1. did you upload your ssh public key to your gitea account?

  2. how do you run the gitea? command line gitea -web or run as service?
    please make sure all path are correct and expected as setting.
    the path (HOME) may different when you execute gitea as service.

https://docs.gitea.io/en-us/specific-variables/

@gfwing commented on GitHub (Jan 24, 2019): 1. did you upload your ssh public key to your gitea account? 2. how do you run the gitea? command line gitea -web or run as service? please make sure all path are correct and expected as setting. the path (HOME) may different when you execute gitea as service. [https://docs.gitea.io/en-us/specific-variables/](https://docs.gitea.io/en-us/specific-variables/)
Author
Owner

@stale[bot] commented on GitHub (Apr 8, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Apr 8, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Apr 22, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Apr 22, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2799