Cannot clone SSH from code.onedev.io (OD-2051)
Unknown opened 1 year ago

Related to #OD-658

I forked this project, clicked on "Clone" and chose SSH then got ssh://code.onedev.io:6611/null/server but that doesn't work

git clone ssh://[email protected]/null/server
Cloning into 'server'...
ssh: connect to host code.onedev.io port 6611: Network is unreachable
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I'm running on linux and am able to clone from github, codeberg, gitlab, and other service no problem.

What I tried

They all fail.

  • Unknown changed fields 1 year ago
    Name Previous Value Current Value
    Affected Versions
    master
    11.0.8
  • Robin Shen commented 1 year ago

    code.onedev.io now runs behind Cloudflare and ssh access is currently not supported. Please clone via http instead. Or clone via github mirror: github.com/theonedev/onedev

  • Robin Shen changed state to 'Closed' 1 year ago
    Previous Value Current Value
    Open
    Closed
  • Unknown commented 1 year ago

    For those who find this issue later: if you don't want to keep retyping your username and password (which was my major reason for using SSH), you can store the credentials in your keyring! Git has credential helpers.

    For me, on linux I can use the system's keyring by installing git-credential-libsecret. On NixOS just install gitFull, which includes it.

    @robin There are probably some users who abandon code.onedev.io because SSH doesn't work. I was nearly one of them until I found out about the the credential store! It would be great if y'all worked to fix SSH with cloudfare. They should be able to pass the traffic directly through to port 22.

    Edit: I'd also keep this issue open, because the issue isn't actually resolved until the cloudfare issue is resolved.

  • Robin Shen commented 1 year ago

    I explored cloudflare but did not find the approach to enable public ssh access. They have ssh tunneling but that is not something I want (need to install something on client machine).

    PS: You may also clone from GitHub (github.com/theonedev/onedev), which is a mirror of OneDev repository here. Also bear in mind that code.onedev.io is not a public code hosting service, it is for OneDev deveopment only.

issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
11.0.8
Labels
No labels
Issue Votes (0)
Watchers (1)
Reference
OD-2051
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover