Push ssh public key to lxc container

LXC is by far my favorite virtualization software for the desktop. I can spin up a base image to test something within seconds. After starting there is one thing I’ll always do: setup SSH key login, then it feels like any other machine to manage. Lets go trough the steps. Setup a test machine svanbroekhoven@PC-stein:~$ lxc image list +-------+--------------+--------+-------------------------------------------+--------+----------+------------------------------+ | ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCH | SIZE | UPLOAD DATE | +-------+--------------+--------+-------------------------------------------+--------+----------+------------------------------+ | | 70223d3f415c | no | ubuntu 16.