Timeout for 1P auth on SSH changed to be super short

nickv2002nickv2002 Junior Member
Community Member
edited July 26 in SSH

I've had SSH auth working well for a few months and I use it every day, but today something seems to have changed. When I initiate a connection I will get the TouchID prompt for a short time (less than 1 second) and then it will disappear and prompt me for my password (to the remote machine not 1P) instead. If I am quick and get my finger on the sensor before that tiny window, things work fine and I'm authenticated with a key, but it didn't used to be so dang short! I tried with multiple servers that I know have not had any changes on their side and always got the same behavior, so I know it something wrong with my local SSH agent.

Here's the output of ssh -v the TouchID prompt disappears when sign_and_send_pubkey: signing failed for ED25519 "Personal SSH Key" from agent: agent refused operation shows up:

$ ssh -v u
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/nick/.ssh/config
debug1: /Users/nick/.ssh/config line 2: Applying options for u
debug1: /Users/nick/.ssh/config line 40: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 10.0.1.2 [10.0.1.2] port 22.
debug1: Connection established.
debug1: identity file /Users/nick/.ssh/id_rsa type -1
debug1: identity file /Users/nick/.ssh/id_rsa-cert type -1
debug1: identity file /Users/nick/.ssh/id_dsa type -1
debug1: identity file /Users/nick/.ssh/id_dsa-cert type -1
debug1: identity file /Users/nick/.ssh/id_ecdsa type -1
debug1: identity file /Users/nick/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/nick/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/nick/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/nick/.ssh/id_ed25519 type -1
debug1: identity file /Users/nick/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/nick/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/nick/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/nick/.ssh/id_xmss type -1
debug1: identity file /Users/nick/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.5
debug1: compat_banner: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.5 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.0.1.2:22 as 'nick'
debug1: load_hostkeys: fopen /Users/nick/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:<hash>
debug1: load_hostkeys: fopen /Users/nick/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '10.0.1.2' is known and matches the ECDSA host key.
debug1: Found key in /Users/nick/.ssh/known_hosts:151
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: Personal SSH Key ED25519 SHA256:<hash> agent
debug1: Will attempt key: Doma SSH Key ED25519 SHA256:<hash> agent
debug1: Will attempt key: /Users/nick/.ssh/id_rsa
debug1: Will attempt key: /Users/nick/.ssh/id_dsa
debug1: Will attempt key: /Users/nick/.ssh/id_ecdsa
debug1: Will attempt key: /Users/nick/.ssh/id_ecdsa_sk
debug1: Will attempt key: /Users/nick/.ssh/id_ed25519
debug1: Will attempt key: /Users/nick/.ssh/id_ed25519_sk
debug1: Will attempt key: /Users/nick/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected]>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: Personal SSH Key ED25519 SHA256:<hash> agent
debug1: Server accepts key: Personal SSH Key ED25519 SHA256:<hash> agent
sign_and_send_pubkey: signing failed for ED25519 "Personal SSH Key" from agent: agent refused operation
debug1: Offering public key: Doma SSH Key ED25519 SHA256:<hash> agent
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/nick/.ssh/id_rsa
debug1: Trying private key: /Users/nick/.ssh/id_dsa
debug1: Trying private key: /Users/nick/.ssh/id_ecdsa
debug1: Trying private key: /Users/nick/.ssh/id_ecdsa_sk
debug1: Trying private key: /Users/nick/.ssh/id_ed25519
debug1: Trying private key: /Users/nick/.ssh/id_ed25519_sk
debug1: Trying private key: /Users/nick/.ssh/id_xmss
debug1: Next authentication method: password
[email protected]'s password:

1Password Version: 8.8.0 - 80800203
Extension Version: N/A
OS Version: 12.5
Browser:_ N/A

Comments

  • nickv2002nickv2002 Junior Member
    Community Member
    edited July 26

    Relevant excerpt of my .ssh/config file too:

    # Core SSH Config
    Host uzfs u
      HostName 10.0.1.2
      User nick
    
    Host *
      AddKeysToAgent yes
      ForwardX11 no
      IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
    
  • nickv2002nickv2002 Junior Member
    Community Member

    I was on the beta channel so was on Build 80800215, on BETA channel when I noticed the problem this morning. I uninstalled that and reverted to 80800203, on PRODUCTION channel to try and fix but I'm still getting the same behavior.

  • nickv2002nickv2002 Junior Member
    Community Member

    Actually, this appears to be a larger problem. I get the same sub-second TouchID prompt even when unlocking the main 1Password application. So I don't think this is a ssh-agent problem after all.

  • nickv2002nickv2002 Junior Member
    Community Member

    I resolved this by some combination of restarting, logging in/out of 1Pass, and reconnecting my Keyboard with TouchID.
    Weird bug but maybe that can help someone narrow things down.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file