gogs: Can't push using SSH keys
Hi,
my coworker and I deployed a Gogs server internally, but we’re having problem using SSH keys as an authentication method.
We get the following error:
$ git push
Gogs: Repository owner does not exist
Unregistered owner: XXX
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The serv.log file says:
2016/01/29 16:14:35 [...ts/gogs/cmd/serve.go:165 runServ()] [F] Unregistered owner: XXX
If we try to login via SSH, we obtain this successful message:
$ ssh -T git@gogs
Hi there, You've successfully authenticated, but Gogs does not provide shell access.
If this is unexpected, please log in with password and setup Gogs under another user.
We already tried using the “Rewrite the .ssh/authorized_keys file” functionality, or linking the conf/app.ini to the custom/conf/app.ini file, but to no avail.
However, we can connect and push to the server using HTTPS.
Can you help us find the problem? We’re running a Gogs compiled from the sources on a Debian 8, using SQLite3 as the DBMS.
Thanks!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Add FAQ for gogits/gogs#2514 — committed to gogs/docs by unknwon 8 years ago
- fix updated update on public key (#2514) * fix updated update on public key * update vendor.json Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix root path Signed-off-by: Bo-Yi Wu <a... — committed to ethantkoenig/gogs by lunny 7 years ago
For those who use SSH on a different port from 22, solution is adding
ssh://
at the beginning:I’m facing similar issue.
ssh -v gogs@myserver
, says i’m authenticated.origin
it displays the error although i’m owner of the repo.Thoughts?