Skip to content

Redmine (and possibly other apps that support git) shows incorrect URL for git access via SSH #1879

@JedMeister

Description

@JedMeister

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://vcs@3.26.164.234/srv/repos/svn
GIT:        ssh://vcs@3.26.164.234/git
SSH/SFTP:   root@3.26.164.234 (port 22)

However, following these instructions results in failure (cloning the included helloworld repo):

$ git clone ssh://vcs@3.26.164.234/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 vcs@3.26.164.234:git. I.e.:

$ git clone vcs@3.26.164.234: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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions