tracker
tracker copied to clipboard
Redmine (and possibly other apps that support git) shows incorrect URL for git access via SSH
the TurnKey Redmine appliance shows the following (assuming IP address of 3.26.164.234
):
Web: http://3.26.164.234
https://3.26.164.234
Web shell: https://3.26.164.234:12320
Webmin: https://3.26.164.234:12321
SVN: svn://3.26.164.234/svn
svn+ssh://[email protected]/srv/repos/svn
GIT: ssh://[email protected]/git
SSH/SFTP: [email protected] (port 22)
However, following these instructions results in failure (cloning the included helloworld
repo):
$ git clone ssh://[email protected]/git/public/helloworld.git
Cloning into 'helloworld'...
fatal: '/git/public/helloworld.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.
The correct URL is [email protected]:git
. I.e.:
$ git clone [email protected]:git/public/helloworld.git
Cloning into 'helloworld'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (7/7), done.