Skip to main content
chmod700
September 24, 2024
Question

Possible to use 'op' via SSH tunnel?

  • September 24, 2024
  • 2 replies
  • 129 views

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

2 replies

chmod700
chmod700Author
September 24, 2024

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
chmod700Author
September 24, 2024

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.