Host Fedora 36
LXD container Ubuntu 22.04.1 Jammy
I can ssh from the guest container to the host OS
But when I try ssh from Fedora(Host) to the LXD ubuntu container I get
jammy0@10.142.254.210: Permission denied (publickey).
Any advice?
Edit:
maybe this output will help
[root@fedora .ssh]# ls -ld
drwx------. 1 sherab sherab 82 Oct 9 20:53 .
[root@fedora .ssh]# ls -la
total 12
drwx------. 1 user user 82 Oct 9 20:53 .
drwx------. 1 user user 328 Oct 9 19:11 ..
-rw-------. 1 root root 2602 Oct 9 20:53 jammy0_id_rsa
-rw-r--r--. 1 root root 565 Oct 9 20:53 jammy0_id_rsa.pub
-rw-r--r--. 1 user user 96 Oct 9 19:11 known_hosts
[root@fedora .ssh]# ssh-copy-id -i ./jammy0_id_rsa.pub jammy0@10.142.254.210
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "./jammy0_id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
jammy0@10.142.254.210: Permission denied (publickey).