I install/configure and run gogs 0.11.4.
I enable ssh configuration configure it on port 22 and give the root path for ssh so in my case /root/.ssh
When I try to push or clone from a existing repository I get
fatal: ‘user/myrepo.git’ does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
I have my repo root path under /root/gogs-repositories so I try to go under /root/gogs-repositories/user/myrepo.git and well my repo exists.
I also check in my authorized_keys if my ssh was added and I’ve got:
command="/var/www/gogs/gogs serv key-1 … mypubkey"
So I suppose my ssh key was added correctly.
I’m running my gogs under localhost:3000
I configure the ssh domain with my vps server name.
Obviously if I run ssh root@myvpsname I can log in on my vps.
So why I can’t get gogs working with ssh? Where I’m wrong?