Problem When Installing Gogs From Source


When running the command go get -u I get the prompt:
# cd .; git clone /home/gogs/go/src/
Cloning into '/home/gogs/go/src/'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
package exit status 128

Is there something I have to fix with my SSH key?

So I figured it had something to do with my SSH key. On a hunch, I figured if setting up ssh keys on the /home/gogs/ since I’m on user gogs right now would help… so I generated a pair key for the gogs user and added it to my ssh agent. So now when I run go get -u I get a prompt asking for my passphrase to which I input it, however nothing happens. It just flashes back to gogs@raspberry: $