rhdev opened 2 years ago
|
|||||
You are missing the onedev ssh port in the url. Try below instead:
|
|||||
@robin - you can see in the response back that the correct port has been used as per what was configured in the SSH config file. |
|||||
I see you are cloning using below command:
I can clone with below command successfully:
If still not working, please let me know exact command used to generate your SSH keys |
|||||
SSH config:
|
|||||
Not sure why this is happening. I am testing on Mac and it works fine. What is your OS? Are your public key starts with ssh_rsa? |
|||||
@robin Yep. Started with SSH-RSA. I tried again using verbose output:
This gave me a clue - I believe it's not supporting RSA? I recreated using ed25519 algo instead:
I can now clone the server repo:
|
|||||
This is odd. Both rsa and ed25519 key works at my side. What is your OS/version? |
|||||
Also please check if this helps: |
|||||
Using Arch Linux. Software and versions: lib32-libssh2 1.10.0-1 libssh 0.9.6-1 libssh2 1.10.0-1 openssh 8.8p1-1 git 2.35.0-1 That link is what drew me to trying ed25519 as a resolution. |
|||||
Are you able to use your RSA keys to clone via SSH over github? |
|||||
Yep, no problems with GitHub. |
|||||
OneDev changed state to 'Closed' 2 years ago
|
|||||
State changed as code fixing the issue is committed |
|||||
OneDev changed state to 'Released' 2 years ago
|
|||||
State changed as build #2259 is successful |
|||||
@rhdev, try to do this command to apply your generated key go git config, and it will work like a charm.
|
|||||
Same problem here with OneDev 8.5.0. I can't use SSH to clone a repository from a local OneDev instance, using my SSH private key. I even tried generating / importing an ed25519 key, and it still fails. I really want to use self-hosted OneDev, but if I can't even get SSH working, it's a deal breaker. Thanks for the free software though .... it's pretty cool. |
|||||
Can you please let me know the detailed reproducing steps? This always works at my side (and on many others using OneDev). |
|||||
I just set up a new Docker container with OneDev, and it's working fine now. I have no idea what was going on before. It was weird. |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
Affected Versions |
Not Found
|
Same problem as issue onedev/server#512.
SSH config file created as follows: