Nixos-rebuild: Difference between revisions

imported>Raboof
Basic functionality: update error message, for better search engine matching
imported>Williamvds
Entering a password with remote sudo
Line 37: Line 37:
$ nixos-rebuild --target-host user@example.com --use-remote-sudo switch
$ nixos-rebuild --target-host user@example.com --use-remote-sudo switch
</syntaxHighlight>
</syntaxHighlight>
To enter a password while using remote sudo, prefix the command with <code>NIX_SSHOPTS="-o RequestTTY=force"</code>.


{{Note|When rebuilding a remote host, you may see similar errors to the following:
{{Note|When rebuilding a remote host, you may see similar errors to the following: