Using the 1Password CLI to authenticate git

danmassey
danmassey
Community Member

I have a system that I ssh into to do development work.

When I ssh in from a device with 1password on I use ssh agent forwarding to pass a key through to my remote system. Git on the remote system is then configured to use that ssh key when I fetch/pull/commit.

Sometimes I need to ssh into the system from another device. I have installed the 1password CLI on the remote system and can successfully log in.

Is it possible to retrieve the stored key from op when I use a git command and use it to authenticate/sign the request?

Remote setup:
CLI version 2.30.3
Linux 5.15.0-301.163.5.2.el9uek.aarch64
cpe:/o:oracle:linux:9:5:server


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided