Skip to content

unable to to clone public GitLab repos using SSH #5467

@heygarrett

Description

@heygarrett

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions