Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
hughbiquitous
2 years agoNew Contributor
SSH commands result in 1Password GUI authorization prompt on remote machine
My apologies if this is covered by another question but I couldn't find the exact problem I'm having.
I primarily work on a Mac, but I have another developer machine running Ubuntu 22.04. I use SSH for my Github work and all my SSH keys are in 1Password. When I'm working directly at each machine, all is well.
But today I tried to do this:
- On my Mac, open an SSH session on the Ubuntu machine.
- In the SSH session, run a
git pull
to get the latest code on the Ubuntu machine. - Expected: my 1Password keys would be forwarded through the agent
- Observed: The 1Password authorization prompt appears on the Ubuntu desktop.
Some details:
- On the Mac, I have SSH_AUTH_SOCK
set to $HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock
(actually symlinked through $HOME/.1password/agent.sock
)
- On the Ubuntu side, I have SSH_AUTH_SOCK
set to $HOME/.1password/agent.sock
Am I missing something?
1Password Version: 1Password for Mac 8.10.18 (81018040)
Extension Version: Not Provided
OS Version: macOS 13.6
Browser: Not Provided
- hughbiquitousNew Contributor
I think I figured it out... I changed my Linux .zshrc so it only sets
SSH_AUTH_SOCK
if it is NOT in an SSH session:
if [ -z "$SSH_TTY" ] ; then
# set up SSH_AUTH_SOCK for local session to use 1Password instead of the forwarded SSH agent
fi