Changing SSH Public Key file for existing containers?

Giovanni

Renowned Member
Apr 1, 2009
114
12
83
Hi

If you created a few containers with password only (no SSH key file), is it possible to manually add an SSH key file after the container was created?

Thanks
 
you could:
use 'pct enter' to enter the guest and do it manually
use 'pct mount' to temporarily mount the guest fs on the host
use 'pct push' to push a file into the container
use 'pct exec' to execute a command inside the container