Jump to content

Gitea ssh-key problems


Recommended Posts

Hey guys, i updated a branch on my development fork. If i want to push the changes, ill have to enter my credentials even if i cloned it with my configured ssh key. Does anyone have the same problem ? And if i do that, than it will not accept it either.
Had the problem bot on fedora 41 and opensuse tumbleweed.

Link to comment
Share on other sites

  • 2 months later...

Hello its me again. Having troubles again with the lfs... So fetching from the main repository works with the suggestion from the .lfsconfig. But i can no longer update my fork, its always trying to push directly to the main 0ad repository... Any ideas why? Same problem on windows and linux and on a clean checkout. 
Also did try the suggestion from this thread, but the effect was that it would never update again from the main 0ad repo.

actual error: 

batch request: error::   0% (0/1), 0 B | 0 B/s                                                                                                                                                                                              
error: User: 1394:Cayleb-Ordo with Key: 34:Linux-PC is not authorized to write to 0ad/0ad.
error:: exit status 1


local git config:

 

core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@gitea.wildfiregames.com:Cayleb-Ordo/0ad.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
branch.main.vscode-merge-base=origin/main
remote.0ad-base.url=git@gitea.wildfiregames.com:0ad/0ad.git
remote.0ad-base.fetch=+refs/heads/*:refs/remotes/0ad-base/*
user.name=Cayleb-Ordo
branch.build-with-cmake.remote=origin
branch.build-with-cmake.merge=refs/heads/build-with-cmake
branch.build-with-cmake.vscode-merge-base=origin/build-with-cmake
lfs.repositoryformatversion=0
lfs.url=git@gitea.wildfiregames.com:0ad/0ad.git
branch.build-with-cmake-initial.remote=origin
branch.build-with-cmake-initial.merge=refs/heads/build-with-cmake-initial
branch.build-with-cmake-initial.vscode-merge-base=origin/build-with-cmake
lfs.https://gitea.wildfiregames.com/0ad/0ad.git.locksverify=false
lfs.https://gitea.wildfiregames.com/Cayleb-Ordo/0ad.git.locksverify=true
branch.build-with-cmake-backup.vscode-merge-base=origin/build-with-cmake



remote configuration:

0ad-base        git@gitea.wildfiregames.com:0ad/0ad.git (fetch)
0ad-base        git@gitea.wildfiregames.com:0ad/0ad.git (push)
origin  git@gitea.wildfiregames.com:Cayleb-Ordo/0ad.git (fetch)
origin  git@gitea.wildfiregames.com:Cayleb-Ordo/0ad.git (push)

 

Edited by Cayleb-Ordo
Link to comment
Share on other sites

Ah! I missed that thread. I have a similar problem (still today). Can't update my fork.

ssh -T git@gitea.wildfiregames.comSSH 

Says hi, but then it ask me for https authentication in a loop. No error, nothing, just keep asking credentials. I've tried a lot of different things as I though I was doing something wrong but no success here yet.

Link to comment
Share on other sites

On 09/11/2025 at 6:51 PM, Cayleb-Ordo said:

Hello its me again. Having troubles again with the lfs... So fetching from the main repository works with the suggestion from the .lfsconfig. But i can no longer update my fork, its always trying to push directly to the main 0ad repository... Any ideas why? Same problem on windows and linux and on a clean checkout. 
Also did try the suggestion from this thread, but the effect was that it would never update again from the main 0ad repo.

actual error: 

batch request: error::   0% (0/1), 0 B | 0 B/s                                                                                                                                                                                              
error: User: 1394:Cayleb-Ordo with Key: 34:Linux-PC is not authorized to write to 0ad/0ad.
error:: exit status 1


local git config:

 

core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@gitea.wildfiregames.com:Cayleb-Ordo/0ad.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
branch.main.vscode-merge-base=origin/main
remote.0ad-base.url=git@gitea.wildfiregames.com:0ad/0ad.git
remote.0ad-base.fetch=+refs/heads/*:refs/remotes/0ad-base/*
user.name=Cayleb-Ordo
branch.build-with-cmake.remote=origin
branch.build-with-cmake.merge=refs/heads/build-with-cmake
branch.build-with-cmake.vscode-merge-base=origin/build-with-cmake
lfs.repositoryformatversion=0
lfs.url=git@gitea.wildfiregames.com:0ad/0ad.git
branch.build-with-cmake-initial.remote=origin
branch.build-with-cmake-initial.merge=refs/heads/build-with-cmake-initial
branch.build-with-cmake-initial.vscode-merge-base=origin/build-with-cmake
lfs.https://gitea.wildfiregames.com/0ad/0ad.git.locksverify=false
lfs.https://gitea.wildfiregames.com/Cayleb-Ordo/0ad.git.locksverify=true
branch.build-with-cmake-backup.vscode-merge-base=origin/build-with-cmake



remote configuration:

0ad-base        git@gitea.wildfiregames.com:0ad/0ad.git (fetch)
0ad-base        git@gitea.wildfiregames.com:0ad/0ad.git (push)
origin  git@gitea.wildfiregames.com:Cayleb-Ordo/0ad.git (fetch)
origin  git@gitea.wildfiregames.com:Cayleb-Ordo/0ad.git (push)

 

Just to check you could make the lfs point to your fork instead.

Link to comment
Share on other sites

@Stan` So i did retest it with the higher rights. 
 

[lfs]
   repositoryformatversion = 0
   url = git@gitea.wildfiregames.com:0ad/0ad.git

Thats the config, i did those commands:
 

$ git lfs fetch 0ad-base main
$ git lfs pull 0ad-base main
$ git rebase -i 0ad-base/main
$ git push 
...
To gitea.wildfiregames.com:Cayleb-Ordo/0ad.git
   68a7abb3b3..6bdcab11b9  main -> main
$

Seems to work.

Edited by Cayleb-Ordo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...