Possible to use 'op' via SSH tunnel?

chmod700
chmod700
Community Member

I did find an "SSH Agent Forwarding" thread, but I can't tell if it applies to what I want to do.

Here's the scenario: I'm sitting at home at a Mac. I have an SSH tunnel to work's network and on a build machine I want to ask the 1Password running at home on the Mac for a password in a script using 'op'. Here's a picture I drew of it:

Is this possible?


1Password Version: 8.10.44
Extension Version: NA
OS Version: macOS 14.7.1
Browser: NA

Comments

  • chmod700
    chmod700
    Community Member

    Btw, I did consider just doing an op signin on the build machine, but I use a Yubikey and I don't have physical access (the machines are in a colo). When I ran the command it asked for a "six-digit authentication code" which I have no idea about. Also, I really would like to authenticate on my home machine and not signin on the build machine.

  • chmod700
    chmod700
    Community Member
    edited September 24

    And actually, the SSH tunnel isn't to the build host, but to another machine, but I could ssh -Y or anything else that is needed from the host the tunnel is on to the build host.