Skip to content

Cloning via SSH doesn't work #2320

@kiirkegaard

Description

@kiirkegaard
  • Gitea version (or commit ref): 1.1.3
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04.2 LTS
  • Database (use [x]):
    • PostgreSQL
    • [x ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [x ] Not relevant
  • Log gist:

Description

I found a few similar issues on the gog and gitea tracker, but in my case it's a fresh install.

My repositories reside in "/home/garfield/gitea-repositories/garfield/"

When trying to clone via ssh, the clone URL omits the "/home/garfield" part but displays ssh://domain.com/garfield/example.git. Which leads to the git error:


garfield@machine>git clone ssh://garfield@mydomain:222/garfield/playground.git
Cloning into 'playground'...
fatal: '/garfield/playground.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.

Adding "/home/garfield/gitea-repositories" between domain name and "garfield/example.git" makes it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions