Skip to content

feat: How to connect with different user after reboot? #409

Closed
@gabyx

Description

@gabyx

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions