Replication with secure SSH configuration (root login disabled/pw auth disabled)

bqq100

Member
Jun 8, 2021
16
0
6
40
I am setting up a new proxmox cluster for my homelab and I would like to use replication for some of my critical VMs.

However for all of my servers, one of the first changes I make is to modify the SSH Server to disable root logins and to disable password authentication. This seems to break replication since it is trying to SSH using the root user.

Is there anyway to modify the SSH command to add the appropriate options for support key based auth for a user other than root?
 
no it's hardcoded to use root, but i'd suggest setting root to key based auth only, that should work
 
  • Like
Reactions: bqq100
no it's hardcoded to use root, but i'd suggest setting root to key based auth only, that should work
Thanks for the info. I'm surprised that there is no support for this SSH best practice.

If i set PermitRootLogin to without-password instead of no, how can I configure Proxmox replication to use key based auth? EDIT: Nevermind, it's already configured for this.

Also, is there a list of commands that Proxmox will ever use? I would like to limit what commands the key can be used to execute if I go down this path.
 
Last edited:
Why don't you just allow root logins for the cluster members only via a "Match Address" stanza? This way it's not possible to connect to a host as root from "outside" the cluster.
 
  • Like
Reactions: bqq100
Why don't you just allow root logins for the cluster members only via a "Match Address" stanza? This way it's not possible to connect to a host as root from "outside" the cluster.

Thanks! I've never heard of the Match Address stanza before. It looks like that is a reasonable mitigation solution.
 

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!