My pc is running Lubuntu 20.04.
I am trying to ssh to a raspberry pi 4 running Ubuntu Server 22.04.
I have followed the setup instructions but see the following:
ssh -v paul@192.168.1.121OpenSSH_8.2p1 Ubuntu-4ubuntu0.11, OpenSSL 1.1.1f 31 Mar 2020debug1: Reading configuration data /home/paul/.ssh/configdebug1: /home/paul/.ssh/config line 1: Applying options for *debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no filesdebug1: /etc/ssh/ssh_config line 21: Applying options for *debug1: Connecting to 192.168.1.121 [192.168.1.121] port 22.debug1: Connection established.debug1: identity file /home/paul/.ssh/id_rsa type 0debug1: identity file /home/paul/.ssh/id_rsa-cert type -1debug1: identity file /home/paul/.ssh/id_dsa type -1debug1: identity file /home/paul/.ssh/id_dsa-cert type -1debug1: identity file /home/paul/.ssh/id_ecdsa type -1debug1: identity file /home/paul/.ssh/id_ecdsa-cert type -1debug1: identity file /home/paul/.ssh/id_ecdsa_sk type -1debug1: identity file /home/paul/.ssh/id_ecdsa_sk-cert type -1debug1: identity file /home/paul/.ssh/id_ed25519 type -1debug1: identity file /home/paul/.ssh/id_ed25519-cert type -1debug1: identity file /home/paul/.ssh/id_ed25519_sk type -1debug1: identity file /home/paul/.ssh/id_ed25519_sk-cert type -1debug1: identity file /home/paul/.ssh/id_xmss type -1debug1: identity file /home/paul/.ssh/id_xmss-cert type -1debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3ubuntu0.6debug1: match: OpenSSH_8.9p1 Ubuntu-3ubuntu0.6 pat OpenSSH* compat 0x04000000debug1: Authenticating to 192.168.1.121:22 as 'paul'debug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: algorithm: curve25519-sha256debug1: kex: host key algorithm: ecdsa-sha2-nistp256debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: nonedebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: nonedebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: Server host key: ecdsa-sha2-nistp256 SHA256:hB5vu/iLN16xccrKvXJVhJcCL09bFePcmv/GwEwNEL0debug1: Host '192.168.1.121' is known and matches the ECDSA host key.debug1: Found key in /home/paul/.ssh/known_hosts:9debug1: resetting send seqnr 3debug1: rekey out after 134217728 blocksdebug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug1: resetting read seqnr 3debug1: SSH2_MSG_NEWKEYS receiveddebug1: rekey in after 134217728 blocksdebug1: Will attempt key: /home/paul/.ssh/id_rsa RSA SHA256:o4u2FI6udyWLZqKgV2itDrRJaTQYn65ochhOFkPYfd4debug1: Will attempt key: /home/paul/.ssh/id_dsa debug1: Will attempt key: /home/paul/.ssh/id_ecdsa debug1: Will attempt key: /home/paul/.ssh/id_ecdsa_sk debug1: Will attempt key: /home/paul/.ssh/id_ed25519 debug1: Will attempt key: /home/paul/.ssh/id_ed25519_sk debug1: Will attempt key: /home/paul/.ssh/id_xmss debug1: SSH2_MSG_EXT_INFO receiveddebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)debug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug1: Authentications that can continue: publickeydebug1: Next authentication method: publickeydebug1: Offering public key: /home/paul/.ssh/id_rsa RSA SHA256:o4u2FI6udyWLZqKgV2itDrRJaTQYn65ochhOFkPYfd4debug1: Authentications that can continue: publickeydebug1: Trying private key: /home/paul/.ssh/id_dsadebug1: Trying private key: /home/paul/.ssh/id_ecdsadebug1: Trying private key: /home/paul/.ssh/id_ecdsa_skdebug1: Trying private key: /home/paul/.ssh/id_ed25519debug1: Trying private key: /home/paul/.ssh/id_ed25519_skdebug1: Trying private key: /home/paul/.ssh/id_xmssdebug1: No more authentication methods to try.paul@192.168.1.121: Permission denied (publickey).
I added some options to my ~/.ssh/config as recommended by various posts (to no avail). It is:
Host *HostKeyAlgorithms +ssh-rsaPubkeyAcceptedKeyTypes +ssh-rsa
I use this stuff about once every year, when I get a new Pi (each year making extensive notes on what I did), but every year it fails in different ways. Any solutions would be very welcome.