[SOLVED] Centos 6 Template

weconnect

Member
May 20, 2020
27
2
23
36
Hello all :D

we got a old centos 5 installation on HW (HardWare) and we would like to install it on a CT but as centos 6. (Web Server php 5.3)

the thing is that the only client on it has a very old website and will only work in php 5.3 with some other stuff installed.

the centos 6 lxc container template dont want to load the rsa key file when we install openssh-server in the container in order to remote into the container remotely..

how can we fix this issue? :)

the client has no intention to update the website so we will have to install a container we prefer container over a vm in this case as we dont want to give the client alot of ram or space on the proxmox host. :)

would be awsome for some help :)
 
what fixed it for me was to make a new rsa key from inside the container with
ssh-keygen -b 4096 -t rsa -f /etc/ssh/ssh_host_rsa_key

Dont know if the ssh key gets copyd from the host when you create a Container or if it gets generated during the installation of openssh-server

there is the changed i made from the default sshd_config

Code:
uncomment

PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys
PermitRootLogin yes
HostKey /etc/ssh/ssh_host_rsa_key