Is there a way to access and sync my 1Password data to my account on a linux server when I only have CLI access through SSH and don't have root privileges to do installs?
My use case would be to manage my SSH keys and git keys.
Is there a containerized solution perchance?
Ok just a heads up, I'm still trying to figure this whole thing out.
Note that I do not have the desktop app installed and all of this is performed via SSHing into a machine in terminal.
On Ubuntu 20.04, I successfully installed the op CLI using this:
OP_VERSION="v2.13.1"
# Download and Install
curl -sSfo op.zip https://cache.agilebits.com/dist/1P/op2/pkg/${OP_VERSION}/op_linux_amd64_${OP_VERSION}.zip
sudo unzip -od /usr/local/bin/ op.zip
rm op.zip
# Add correct permissions
sudo groupadd onepassword-cli
sudo chown root:onepassword-cli /usr/local/bin/op
sudo chmod g+s /usr/local/bin/op
This got op to work fine. I do not have 1password desktop installed on this machine.
So next I was trying to add an account with this:
OP_ACCOUNT_ADDRESS="https://xxxxxxxxxx.1password.com/" OP_ACCOUNT_EMAIL="[email protected]" OP_ACCOUNT_SECRET_KEY="A3-......" op account add \ --shorthand "xxxxxxxxxx" \ --address "${OP_ACCOUNT_ADDRESS}" \ --email "${OP_ACCOUNT_EMAIL}" \ --secret-key "${OP_ACCOUNT_SECRET_KEY}" \ --debug
This results in a password prompt. And any way I place the password, I'm getting:
X:XX PM | DEBUG | Skipped loading desktop app settings file. The desktop app might not be installed: read file: lstat /home/xxxx/.config/1Password/settings/settings.json: no such file or directory Enter the password for [email protected] at xxxxxx.1password.com: [ERROR] 2023/01/26 21:08:02 (401) Unauthorized: You aren't authorized to perform this action.
However, if I do the same thing with my personal 1password, works fine!
So am I going crazy and I'm not entering the right password or is there some option on the admin side that prevents this?
[EDIT] Ok never mind, i'm a dumbass, wrong password, works now