Installing a public ssh key on a new vzctl container

Take a backup of the .ssh directory, store in in /vz/
Once the container is created, start it with:

vzctl start 100

Now, extract the .ssh folder:

cd /vz/private/100/root
tar zxf /vz/keys_for_vz/ssh.tar.gz

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.