Closed
Description
I have VM that has a user ubuntu
.
I can run nixos-anywhere --flake ... 11.11.11.11
(which actually works on engine.switch.ch which is really great). The ~/.ssh/config
is:
Host 11.11.11.11
IdentityFile ~/.ssh/vm
IdentitiesOnly yes
User ubuntu
However once it reboots -> I can no longer connect because the user changed to root
=). It works if I in the meantime change the User ubuntu
to User root
.
Is there a way to somehow trick nixos-anywhere
to use root
after install or some other ssh options?
Metadata
Metadata
Assignees
Labels
No labels