Skip to main content
XIII
March 6, 2022
Question

(Same) SSH key only working once (per 1Password session?)

  • March 6, 2022
  • 8 replies
  • 887 views

I have one (ed25519) SSH key that I use to log in to multiple devices. This used to work fine, but as of today only the first login succeeds. When I try to log in to a second or third machine I get this error:


Load key "/Users/me/.ssh/ed25519.pub": invalid format
me@domain.com: Permission denied (publickey).

Coincidentally 1Password then auto-updated. Now I could log in to the second machine using the same key, but not the third.

So it looks like that a SSH key is now only working once per 1Password session?


1Password Version: 80600066 (Nightly)
Extension Version: n/a
OS Version: macOS Monterey 12.2.1

8 replies

XIII
XIIIAuthor
March 6, 2022

Additionally I see this:


➜ ssh-add -l
Error connecting to agent: Connection refused

with this setup:


➜ echo $SSH_AUTH_SOCK
/Users/me/.ssh/.1password/agent.sock

XIII
XIIIAuthor
March 7, 2022

Not solved in 80600067.

This is super annoying: I can use a single key, once, until I reboot my Mac...

floris_1P
1Password Employee
March 7, 2022

Could you share your verbose ssh output? And when running an SSH command, do you see anything appear in the logs? ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/Library/Application\ Support/1Password/Data/logs/1Password_rCURRENT.log

XIII
XIIIAuthor
March 7, 2022

No logs for failed attempts.

Verbose output:


debug1: Next authentication method: publickey
debug1: Offering public key: /Users/me/.ssh/key.pub ED25519 SHA256:<hash> explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /Users/me/.ssh/key.pub ED25519 SHA256:<hash> explicit
debug3: sign_and_send_pubkey: ED25519 SHA256:<hash>
debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:<hash>
Load key "/Users/me/.ssh/key.pub": invalid format
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.

floris_1P
1Password Employee
March 7, 2022

We've received another very similar report today about that nightly, we're investigating the issue. In the mean time, you can consider switching back to the beta channel, by downloading the beta installer.

XIII
XIIIAuthor
March 7, 2022

OK, will try that.

XIII
XIIIAuthor
March 9, 2022

Solved in 80600071 Nightly. Thanks!

K_J__1P
1Password Employee
March 14, 2022

@XIII Glad that this is working for you! Thanks for testing and reporting back. Let us know if you run into other issues. Cheers!