I recently installed Proxmox and started several VM's Ubuntu, Debian and Rocky linux. I am unable to use ssh keys in all VM's for some reason and receiving permission denied. I have deployed these OS's via kvm many times with no issue. If I use ssh-copy the key is transferred but still receive error. I have checked the ,ssh and known_hosts and the ownership and permissions are correct. Any suggestions?
user@LAPTOP:~$ ssh user@192.168.1.xx
hostkeys_find_by_key_hostfile: hostkeys_foreach failed for /home/user/.ssh/known_hosts: Permission denied
The authenticity of host '192.168.1.123 (192.168.1.xxx)' can't be established.
ED25519 key fingerprint is SHA256:XFF2lfzk7bkbJOSy4wB77llutT5FSwRrxxjbfiiJEZ8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Failed to add the host to the list of known hosts (/home/user/.ssh/known_hosts).
user@192.168.1.xxx's password:
client_input_hostkeys: hostkeys_foreach failed for /home/user/.ssh/known_hosts: Permission denied
Last login: Wed Aug 2 14:51:06 2023 from 192.168.1.xxx
[gtcnet@localhost ~]$
user@LAPTOP:~$ ssh user@192.168.1.xx
hostkeys_find_by_key_hostfile: hostkeys_foreach failed for /home/user/.ssh/known_hosts: Permission denied
The authenticity of host '192.168.1.123 (192.168.1.xxx)' can't be established.
ED25519 key fingerprint is SHA256:XFF2lfzk7bkbJOSy4wB77llutT5FSwRrxxjbfiiJEZ8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Failed to add the host to the list of known hosts (/home/user/.ssh/known_hosts).
user@192.168.1.xxx's password:
client_input_hostkeys: hostkeys_foreach failed for /home/user/.ssh/known_hosts: Permission denied
Last login: Wed Aug 2 14:51:06 2023 from 192.168.1.xxx
[gtcnet@localhost ~]$