Can't ping the outside world

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@ Permission denied (publickey).
Any advice?
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
-rw-r--r--. 1 user user   96 Oct  9 19:11 known_hosts
[root@fedora .ssh]# ssh-copy-id -i ./ jammy0@
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "./"
/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@ Permission denied (publickey).

So is the issue ping or SSH?

Hi @tomp
The issue is ssh.
I’d like to ash into the guest.

Have you setup the user with the desired credentials/SSH key inside the container?

No. The problem is when ssh-copy-id user@container-ip I just get permission denied(public key)

So I can’t transfer the pub key to the container.

The container has a user with a password but I am not being asked for the user’s password. It just denies any connection.

Having deleted the container
Having reinstalled ssh on the host
It seems to be ok now.