Skip to content

fix(ssh): perform root command elevation test once before password input#204

Open
water-sucks wants to merge 1 commit intonix-community:mainfrom
water-sucks:allow-passwordless-remote-cmd
Open

fix(ssh): perform root command elevation test once before password input#204
water-sucks wants to merge 1 commit intonix-community:mainfrom
water-sucks:allow-passwordless-remote-cmd

Conversation

@water-sucks
Copy link
Collaborator

When a user was configured to have passwordless sudo/doas elevation, attempting to activate with that user in nixos apply --target-host was broken since it would always ask for a password when EnsureRemoteRemotePassword was called.

To avoid this scenario and allow for non-interactive deployments, this PR performs a test of the elevation command once to see if this access is already available, even with a nonexistent password.

@water-sucks water-sucks force-pushed the allow-passwordless-remote-cmd branch from 76de293 to 37104fe Compare March 11, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant