не могу найти, что мешает войти по ключу
valentin@bel02:~$ ssh -v valentin@10.0.2.103
OpenSSH_8.9p1 Ubuntu-3ubuntu0.13, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/valentin/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 10.0.2.103 [10.0.2.103] port 22.
debug1: Connection established.
debug1: identity file /home/valentin/.ssh/id_rsa type 0
debug1: identity file /home/valentin/.ssh/id_rsa-cert type -1
debug1: identity file /home/valentin/.ssh/id_ecdsa type -1
debug1: identity file /home/valentin/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/valentin/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/valentin/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/valentin/.ssh/id_ed25519 type -1
debug1: identity file /home/valentin/.ssh/id_ed25519-cert type -1
debug1: identity file /home/valentin/.ssh/id_ed25519_sk type -1
debug1: identity file /home/valentin/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/valentin/.ssh/id_xmss type -1
debug1: identity file /home/valentin/.ssh/id_xmss-cert type -1
debug1: identity file /home/valentin/.ssh/id_dsa type -1
debug1: identity file /home/valentin/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.13
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.6p1 Ubuntu-3ubuntu13.11
debug1: compat_banner: match: OpenSSH_9.6p1 Ubuntu-3ubuntu13.11 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.0.2.103:22 as 'valentin'
debug1: load_hostkeys: fopen /home/valentin/.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: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com 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:emLRZvLhXrrnSMWGMS/5eTgV8aUODlW5petNODQJtgk
debug1: load_hostkeys: fopen /home/valentin/.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.2.103' is known and matches the ECDSA host key.
debug1: Found key in /home/valentin/.ssh/known_hosts:3
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/valentin/.ssh/id_rsa RSA SHA256:x2m1vaFO24i5LdVcU2O603mlMN4v5RMRaP6TffrB6Bk
debug1: Will attempt key: /home/valentin/.ssh/id_ecdsa
debug1: Will attempt key: /home/valentin/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/valentin/.ssh/id_ed25519
debug1: Will attempt key: /home/valentin/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/valentin/.ssh/id_xmss
debug1: Will attempt key: /home/valentin/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<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>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0>
debug1: kex_input_ext_info: ping@openssh.com (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/valentin/.ssh/id_rsa RSA SHA256:x2m1vaFO24i5LdVcU2O603mlMN4v5RMRaP6TffrB6Bk
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/valentin/.ssh/id_ecdsa
debug1: Trying private key: /home/valentin/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/valentin/.ssh/id_ed25519
debug1: Trying private key: /home/valentin/.ssh/id_ed25519_sk
debug1: Trying private key: /home/valentin/.ssh/id_xmss
debug1: Trying private key: /home/valentin/.ssh/id_dsa
debug1: Next authentication method: password
valentin@10.0.2.103's password:
server выдает: 2025-06-18T17:47:52.472777+03:00 bel03 sshd[10253]: Authentication refused: bad ownership or modes for directory /home/valentin
однако у клиента:
drwx—— 2 valentin valentin 4096 июн 18 16:40 .