Skip to content

cli: add --ssh-password-prompt flag for interactive SSH password input#1585

Open
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:ssh-password-prompt
Open

cli: add --ssh-password-prompt flag for interactive SSH password input#1585
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:ssh-password-prompt

Conversation

@wowi42
Copy link
Contributor

@wowi42 wowi42 commented Mar 5, 2026

Adds a --ssh-password-prompt flag that prompts for the SSH password via getpass instead of requiring it on the command line, avoiding exposure in process lists and shell history. Follows the same pattern as --same-sudo-password.

Closes #1560

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh)
  • Type checking & code style passes (see scripts/dev-lint.sh)

Adds a --ssh-password-prompt flag that prompts for the SSH password
via getpass instead of requiring it on the command line, avoiding
exposure in process lists and shell history. Follows the same pattern
as --same-sudo-password.

Closes pyinfra-dev#1560
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.

ask password prompt instead pass it to cli

1 participant