[elbe-devel] Add ssh key to initvm.

Köry Maincent kory.maincent at bootlin.com
Thu May 28 15:28:49 CEST 2020



On 28/05/2020 15:13, John Ogness wrote:
> On 2020-05-28, Köry Maincent <kory.maincent at bootlin.com> wrote:
>> On 28/05/2020 11:25, John Ogness wrote:
>>> On 2020-05-28, Köry Maincent <kory.maincent at bootlin.com> wrote:
>>>> Is there a way to copy a ssh key to initvm and is it possible from the
>>>> xml file?  Needed for the git repository of my packages built with
>>>> pbuilder.
>>>
>>> One possible solution...
>>
>> Yes could be a solution, however, it is easier to use virt-copy-in. In
>> both case I still need to login to the initvm to enter my passphrase.
> 
> If your ssh-key package is in the initvm's XML file, there is no need to
> login. The keys will already be in place after the initvm is generated.

How so?
Even if my private key is in place, I need to sign in to the ssh-agent 
in the initvm.
Otherwise in the initvm git can not clone my repo which will be used by 
pbuilder.
Did I miss something?

Regards,

> 
> John Ogness
> 

-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com



More information about the elbe-devel mailing list