Skip to content

"Setting up distributed builds": potentially add warning when ssh-ing to root user? #1228

Description

@helpimnotdrowning

Observations
I was following along with the guide at https://nix.dev/tutorials/nixos/distributed-builds-setup.html , and I was stuck at the part asking me to run

nixos-rebuild switch --no-flake --target-host root@remotemachine

Problem
I was running into an error produced by ssh:

root@localhost: Permission denied (publickey)

Approaches
This was because I had the sshd option PermitRootLogin set to no, as per common security practice. Others may be running into this issue and have forgotten that they have this option set: it might be helpful to add a small reminder around there to have one check their options if they can't run the rebuild.

Willing to help?
I wouldn't mind!

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    siteImprovements to the site infrastructure or content presentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions