[SOLVED] Centos 6 Template

weconnect

Member
May 20, 2020
21
1
8
35
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!