Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to to clone public GitLab repos using SSH #5467

Closed
heygarrett opened this issue Jan 25, 2025 · 2 comments
Closed

unable to to clone public GitLab repos using SSH #5467

heygarrett opened this issue Jan 25, 2025 · 2 comments
Labels
🐛bug Something isn't working

Comments

@heygarrett
Copy link

heygarrett commented Jan 25, 2025

Description

I get an SSH authentication error when attempting to clone a public repo from GitLab (I've tried multiple repos):

~/d/repos/forks
❮ jj git clone --colocate git@gitlab.com:ibhagwan/fzf-lua.git
Fetching into new repo in "/Users/garrett/dev/repos/forks/fzf-lua"
Error: authentication required but no callback set; class=Ssh (23); code=Auth (-16)
Hint: Jujutsu uses libssh2, which doesn't respect ~/.ssh/config. Does `ssh -F /dev/null` to the host work?

~/d/repos/forks
❮ jj git clone git@gitlab.com:ibhagwan/fzf-lua.git
Fetching into new repo in "/Users/garrett/dev/repos/forks/fzf-lua"
Error: authentication required but no callback set; class=Ssh (23); code=Auth (-16)
Hint: Jujutsu uses libssh2, which doesn't respect ~/.ssh/config. Does `ssh -F /dev/null` to the host work?

~/d/repos/forks
❯ jj git clone --colocate git@github.com:ibhagwan/fzf-lua.git
Fetching into new repo in "/Users/garrett/dev/repos/forks/fzf-lua"
bookmark: dev@origin   [new] untracked
bookmark: main@origin  [new] untracked
bookmark: trace@origin [new] untracked
tag:    pre_windows  [new]
Setting the revset alias "trunk()" to "main@origin"
Working copy now at: trxtuyvl f5858935 (empty) (no description set)
Parent commit      : vqurqkyl ba6eee11 main | ci: fix job names
Added 97 files, modified 0 files, removed 0 files

~/d/repos/forks
❯ jj --version
jj 0.25.0

~/d/repos/forks
❯

I am using 1Password as my SSH agent, and I am able to clone from GitHub, as well as a private, hosted GitLab instance, without issue.

Steps to Reproduce the Problem

  1. Grab an SSH clone link from a public repo on GitLab (I'm using fzf-lua because it's also on GitHub)
  2. jj git clone <ssh-clone-link> or jj git clone --colocate <ssh-clone-link>

Expected Behavior

The repo would be cloned.

Actual Behavior

Error: authentication required but no callback set; class=Ssh (23); code=Auth (-16)
Hint: Jujutsu uses libssh2, which doesn't respect ~/.ssh/config. Does `ssh -F /dev/null` to the host work?

Specifications

  • Platform: macOS 15.2
  • Version: jj 0.25.0
@heygarrett heygarrett changed the title unabled to to clone public GitLab repos using ssh unabled to to clone public GitLab repos using SSH Jan 25, 2025
@PhilipMetzger PhilipMetzger added the 🐛bug Something isn't working label Jan 25, 2025
@heygarrett heygarrett changed the title unabled to to clone public GitLab repos using SSH unable to to clone public GitLab repos using SSH Jan 25, 2025
@martinvonz
Copy link
Member

Did the ssh command in the hint work?

You can try building from head (after #5228) and running jj config set --user git.subprocess true.

@heygarrett
Copy link
Author

@martinvonz My mistake. It turns out I had the wrong key set up on GitLab. 🤦‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants