Enabling Default SSH Root Access in Proxmox VE: Seeking Solutions for Seamless LXC Server Deployments

Ericschmidt

New Member
Nov 10, 2023
1
0
1
Hello, does anyone know how to set the SSH root access to allow by default on our Proxmox VE? We would like to provide customers ordering an LXC server the option to log in via root SSH immediately after the order. Currently, we have to do this manually in the template for each order. Does anyone have a solution?
 
Hi,
I suppose you are already using the api to automate the deployment of your customers servers. The endpoint for creating a container allows you to set ssh-public-keys as a parameter, that gets set for the root user. For the full api of your PVE installation you can visit <your instance url>/pve-docs/api-viewer/index.html#/nodes/{node}/lxc
 

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!