-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 connections fail: fatal: '/something/somerepo.git' does not appear to be a git repository #5360
Comments
I think change sqlite path with an absolute path maybe fix your problem. PATH = data/gitea.db |
I set the Path in Restarted the Service Still the same error. Additionally I checked that the
It seems there is no problem with access right. |
If gitea want to modify |
I did a Which makes ls produce:
Restarted my service: But still i get the same error over ssh. |
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. |
@keltik85 the SSH path needs to be absolute or relative to the home directory for user
|
I will close this one, please feel free to reopen it. |
[x]
):Description
Short Story
I can connect to my Gitea Server through the git-cli using HTTP, but SSH connections do not work.
Long Story
I am running gitea as a service using a service file
/etc/systemd/system/gitea.service
with the following content:The other configuration file at
/etc/gitea/app.ini
looks like this:I am able to check out my repo using HTTP connections like this:
But when I switch my remote address to ssh I get an error:
The above command produces a logfile (
/home/myuser/Documents/gitea_ssh_debug.log
) for the ssh connection made by git and the output of it reads like this:So my interpretation of this debug-log is, that the ssh connection is established correctly, because when I connect manually with ssh I can log in:
As you can see i have already tried to give the git-cli some information about the ssh connection like ssh key to use.
I think the Gitea-Server lacks some crucial piece of configuration, but I cant find out which.
I tried already giving the git-cli some information as you can see in the commmand using the environment variable GIT_SSH_COMMAND.
Then I also with the Gitea-Gui in Settings->SSH keys I added the SSH keys that I use for the plain ssh connection, but of no avail.
Has someone had similar problems and knows how to fix it?
The text was updated successfully, but these errors were encountered: