nix-community / nixops-vbox

NixOps VirtualBox backend [maintainer=@AmineChikhaoui]
GNU Lesser General Public License v3.0
22 stars 15 forks source link

VBox: root SSH key in non-standard place #10

Open ip1981 opened 8 years ago

ip1981 commented 8 years ago

https://github.com/NixOS/nixops/blob/master/nix/virtualbox-image-nixops.nix puts root SSH key into /root/.vbox-nixops-client-key.

Are there any reasons not to put it into /root/.ssh/authorized_keys ?

This is related to https://github.com/NixOS/nixpkgs/issues/15841:

I made

{
# ...
services.openssh.authorizedKeysFiles
  = lib.mkForce [ "/etc/ssh/authorized_keys.d/%u" "/root/.ssh/authorized_keys" ];
# ...
}

And it broke my VBox deployments :-)