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

XIII
XIII
Community Member
edited May 2022 in SSH

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

Comments

  • XIII
    XIII
    Community Member

    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
    XIII
    Community Member

    Not solved in 80600067.

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

  • 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
    XIII
    Community Member

    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.
    
  • 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
    XIII
    Community Member

    OK, will try that.

  • XIII
    XIII
    Community Member

    Solved in 80600071 Nightly. Thanks!

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

This discussion has been closed.