Hi,
I have created an instance from image Ubuntu:24.04. The container spins up fine and contains an ip address of 10.10.10.79. On my Ubuntu 22.04 host, my lxd adapter, lxdbr0 is at 10.10.10.1. I can ping from my host to the container and I can ping from my container to my host. I can ssh from my host to my container and easily create a ssh key pair and ssh into my host from the container with a key. I set this key pair up using ssh-copy-id with no problems. The frustrating problem is that I cannot ssh into my container as root or as a user account that I created for the container. I've edited /etc/ssh/sshd_config and set PermitRootLogin yes and tried various edits of typical parameters in this file all to no avail. The error that I get when attempting to ssh in is:
$ ssh root@10.10.10.79
root@10.10.10.79: Permission denied (publickey).
I get the same error when attempting to a (non-root) guest account.
I've seen multiple posts of this but everyone suggests solving by editing sshd_config but this doesn't work in my case.
Does anyone have any insight into this. Thanks so much in advance.
Cheers.
I have created an instance from image Ubuntu:24.04. The container spins up fine and contains an ip address of 10.10.10.79. On my Ubuntu 22.04 host, my lxd adapter, lxdbr0 is at 10.10.10.1. I can ping from my host to the container and I can ping from my container to my host. I can ssh from my host to my container and easily create a ssh key pair and ssh into my host from the container with a key. I set this key pair up using ssh-copy-id with no problems. The frustrating problem is that I cannot ssh into my container as root or as a user account that I created for the container. I've edited /etc/ssh/sshd_config and set PermitRootLogin yes and tried various edits of typical parameters in this file all to no avail. The error that I get when attempting to ssh in is:
$ ssh root@10.10.10.79
root@10.10.10.79: Permission denied (publickey).
I get the same error when attempting to a (non-root) guest account.
I've seen multiple posts of this but everyone suggests solving by editing sshd_config but this doesn't work in my case.
Does anyone have any insight into this. Thanks so much in advance.
Cheers.