Unable to clone on same server as gogs


#1

I am running a server Red Hat 7. I have gogs 0.11.34.1122 installed.
If run the following command from a pc on the same network everything works as expected, i.e. the repository is cloned successfully

git clone http://xxxxx:3000/myusername/PRiSMv2.git .

If I log onto the server via ssh and try to run the same command I get the following error

Cloning into '.'...
fatal: repository 'http://localhost:3000/myusername/PRiSMv2.git/' not found

If I use the ssh link, I am prompted for a password, when I enter the password I get the following error

fatal: 'myusername\PRiSMv2.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
and the repository exists.