Could PVE migrate vm without 'root' accout

eric.chan

New Member
Mar 20, 2024
8
1
3
Hi All,

I have a question about pve vm migration.
As my company have to take security hardening control on the PVE host. The PermitRootLogin setting in file '/etc/ssh/sshd_config' must set to 'no'.
By defafult, when pve doing vm migration, the root account will ssh to the target pve host then execute the copy action to finish migration job. Once I set 'no' to PermitRootLogin, the vm migration will go to faiure.
So is it some other ways to finish vm migration job with root account? And is there some guide or procedure to handle it ?

Thank you.
 
This has been discussed a few times already, a Proxmox VE cluster needs to be able to use SSH with the root user between the nodes. Therefore, the most that you can do is to set it to prohibit-password.
Live migration is one of the use cases as you experienced.
 

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!