op signin asks for password every time on remote headless linux box accessed over VS Code Tunnel
I'm using VS Code Remote Tunnels to connect to a Linux box for development. I'm using the 1P cli to retrieve some secrets in a script to feed to docker, etc. I'm having trouble reliably finding a way add some form of op signin
to my script to authenticate without prompting for the password every time. The --help
text for op signin
states that it shouldn't prompt for authentication if you're already authenticated. But for me, it prompts every time. If I do eval $(op signin)
twice in a row, I get two prompts to authenticate.
Is there some way I can check if the current session is validated? My understanding is that the session lasts 30 minutes, so I'm just looking for a way to only have to enter the password no more than once every 30 minutes.
And to be clear, I'm using Remote Tunnels and not Remote SSH so forwarding my ssh agent connection from my local machine isn't an option.
I'm using version 2.30.0 of the command line tool on Ubuntu 24.04.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided