Skip to content

SSH with 1Password Fails to Authenticate #4978

@zschreur

Description

@zschreur

Description

Authentication with SSH using 1Password has suddenly stopped working.

$ jj git fetch
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?

$ ssh -F /dev/null git@github.com
PTY allocation request failed on channel 0
Hi zschreur! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.

My setup is:

  • SSH_AUTH_SOCK is set to 1Password agent
  • ~/.ssh/config sets the IdentityAgent to be 1Password's agent.sock
  • ~/.config/1Password/ssh/agent.toml sets the ssh key which I use

  • Authentication is successfully working with the git cli
  • Running ssh -F /dev/null git@github.com does successfully authenticate with 1Password:

Steps to Reproduce the Problem

I am unsure. This suddenly stopped working. The only thing that comes to mind is that I updated xcode to latest.

Specifications

  • Platform: MacOS 15.1.1 (24B91)
  • Version: JJ 0.23.0-5de285f5eb727b613434979cd9d83c30cabaffae

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions