Ah. I meant that is the entry in the local ~/.ssh/config that provides data for ssh to connect to the remote site.
Here is the current default response to adding a key:
$ ssh-add -i .ssh/siteground-sma
Could not open a connection to your authentication agent.
It is what started me on the quest for the missing agent.
I had thought I understood how ssh and Gnome interacted; I thought there was either ssh-agent or a compatible agent supplied by Gnome. I do not understand.
The only part that is obvious is the lack of an agent. There is no system service to start ssh-agent. Gnome does not allow it in its Startup Applications.
Can you run the bad case with -vvv and share the output around the siteground-sma key?
Here is the debug output from the point of connection.
debug1: Connection established.
debug1: loaded pubkey from /home/jmoe/.ssh/sma-stn14l: ED25519 SHA256:2/Z3gXJL1t59asYS3fjdOgMAINxQlM1e4bn1+UwVM5A
debug1: identity file /home/jmoe/.ssh/sma-stn14l type 2
debug1: no identity pubkey loaded from /home/jmoe/.ssh/sma-stn14l
debug1: loaded pubkey from /home/jmoe/.ssh/siteground-sma: ED25519 SHA256:hPFG1NrRT31SgeJT0h+pHnzkyIMYJe1uw/qT3UTsW4E
debug1: identity file /home/jmoe/.ssh/siteground-sma type 2
debug1: no identity pubkey loaded from /home/jmoe/.ssh/siteground-sma
debug1: Local version string SSH-2.0-OpenSSH_10.2
debug1: Remote protocol version 2.0, remote software version OpenSSH
debug1: compat_banner: match: OpenSSH pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to sohnen-moe.com:18765 as 'u773-jn2jmispsyv8'
debug3: put_host_port: [sohnen-moe.com]:18765
debug3: record_hostkey: found key type ED25519 in file /home/jmoe/.ssh/known_hosts:39
debug3: record_hostkey: found key type RSA in file /home/jmoe/.ssh/known_hosts:40
debug3: load_hostkeys_file: loaded 2 keys from [sohnen-moe.com]:18765
debug1: load_hostkeys: fopen /home/jmoe/.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
debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: mlkem768x25519-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes256-gcm@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: ciphers stoc: aes256-gcm@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,hmac-sha2-512
debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,hmac-sha2-512
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256,ext-info-s,kex-strict-s-v00@openssh.com
debug2: host key algorithms: ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256,hmac-sha2-512
debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256,hmac-sha2-512
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: diffie-hellman-group-exchange-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: diffie-hellman-group-exchange-sha256 need=32 dh_need=32
debug1: kex: diffie-hellman-group-exchange-sha256 need=32 dh_need=32
debug3: send packet: type 34
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<8192<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_DH_GEX_GROUP received
debug2: bits set: 4018/8192
debug3: send packet: type 32
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: receive packet: type 33
debug1: SSH2_MSG_KEX_DH_GEX_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:i+KAcULq8yvDm4B9noJu/FGMLGBHTC5UJRf1yUJH+Jg
debug3: put_host_port: [35.212.59.134]:18765
debug3: put_host_port: [sohnen-moe.com]:18765
debug3: record_hostkey: found key type ED25519 in file /home/jmoe/.ssh/known_hosts:39
debug3: record_hostkey: found key type RSA in file /home/jmoe/.ssh/known_hosts:40
debug3: load_hostkeys_file: loaded 2 keys from [sohnen-moe.com]:18765
debug1: load_hostkeys: fopen /home/jmoe/.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 '[sohnen-moe.com]:18765' is known and matches the ED25519 host key.
debug1: Found key in /home/jmoe/.ssh/known_hosts:39
debug2: bits set: 4137/8192
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 4
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: Sending SSH2_MSG_EXT_INFO
debug3: send packet: type 7
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 4
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 4294967296 blocks
debug2: KEX algorithms: mlkem768x25519-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes256-gcm@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: ciphers stoc: aes256-gcm@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,hmac-sha2-512
debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,hmac-sha2-512
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512>
debug3: kex_input_ext_info: extension publickey-hostbound@openssh.com
debug1: kex_ext_info_check_ver: publickey-hostbound@openssh.com=<0>
debug3: kex_input_ext_info: extension ping@openssh.com
debug1: kex_ext_info_check_ver: ping@openssh.com=<0>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512>
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,password,keyboard-interactive
debug3: authmethod_lookup publickey
debug3: remaining preferred: password,keyboard-interactive
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
Note: this is where the two previous logs went their different ways.
debug1: Will attempt key: /home/jmoe/.ssh/sma-stn14l ED25519 SHA256:2/Z3gXJL1t59asYS3fjdOgMAINxQlM1e4bn1+UwVM5A explicit
debug1: Will attempt key: /home/jmoe/.ssh/siteground-sma ED25519 SHA256:hPFG1NrRT31SgeJT0h+pHnzkyIMYJe1uw/qT3UTsW4E explicit
debug2: pubkey_prepare: done
debug1: Offering public key: /home/jmoe/.ssh/sma-stn14l ED25519 SHA256:2/Z3gXJL1t59asYS3fjdOgMAINxQlM1e4bn1+UwVM5A explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug1: Offering public key: /home/jmoe/.ssh/siteground-sma ED25519 SHA256:hPFG1NrRT31SgeJT0h+pHnzkyIMYJe1uw/qT3UTsW4E explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /home/jmoe/.ssh/siteground-sma ED25519 SHA256:hPFG1NrRT31SgeJT0h+pHnzkyIMYJe1uw/qT3UTsW4E explicit
debug3: sign_and_send_pubkey: using publickey-hostbound-v00@openssh.com with ED25519 SHA256:hPFG1NrRT31SgeJT0h+pHnzkyIMYJe1uw/qT3UTsW4E
debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:hPFG1NrRT31SgeJT0h+pHnzkyIMYJe1uw/qT3UTsW4E
I also ran -vvv on the passwordless success. These 3 lines make all the difference.
debug1: Next authentication method: publickey
debug3: ssh_get_authentication_socket_path: path '/home/jmoe/.ssh/agent/s.QCeyyzcZiJ.agent.1nAyGuCGyu'
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 3 keys
Bonus data:
$ ll ~/.ssh/
drwx------ 1 jmoe users 348 Jan 17 12:56 agent/
-rw------- 1 jmoe users 1.4K Jan 18 17:05 authorized_keys
-rw------- 1 jmoe users 1.2K Oct 8 12:34 config
-rw------- 1 jmoe users 411 Oct 13 21:55 jmm-sma-stn14l
-rw-r--r-- 1 jmoe users 101 Oct 12 2024 jmm-sma-stn14l.pub
-rw------- 1 jmoe users 13K Dec 1 20:11 known_hosts
-rw------- 1 jmoe users 446 Nov 24 12:39 siteground-sma
-rw------- 1 jmoe users 81 Nov 24 12:40 siteground-sma.pub