Hi everyone,
I can't make sshd working after creating a LXC container based on a centos6 template and using proxmox 6.2.
The error I got in the /var/log/messages of the container when I tried to ssh into is:
sshd: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
sshd: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
So it seems that the ssh host key generated during container creation are not valid.
If I use the same template on promox 6.1, everything is ok (same emplate, same ansible playbook for creation).
Can you help ?
I really need sshd working in the container after creation because I use ansible/ssh to create and configure the container.
Many thanks
my proxmox version:
- pve-manager/6.2-4/9824574a (running kernel: 5.4.34-1-pve)
my template:
- based on centos-6-default_20191016_amd64.tar.xz (latest)
- yum update
- yum install openssh-server
- host keys removed
I can't make sshd working after creating a LXC container based on a centos6 template and using proxmox 6.2.
The error I got in the /var/log/messages of the container when I tried to ssh into is:
sshd: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
sshd: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
So it seems that the ssh host key generated during container creation are not valid.
If I use the same template on promox 6.1, everything is ok (same emplate, same ansible playbook for creation).
Can you help ?
I really need sshd working in the container after creation because I use ansible/ssh to create and configure the container.
Many thanks
my proxmox version:
- pve-manager/6.2-4/9824574a (running kernel: 5.4.34-1-pve)
my template:
- based on centos-6-default_20191016_amd64.tar.xz (latest)
- yum update
- yum install openssh-server
- host keys removed