Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How do I stop the prompt "Permission denied for host <hostname>, do you want to deploy the salt-ssh key? (password required):"? #47087
Description of Issue/Question
I've been digging through man pages and the docs and can't figure out how to disable the prompt in salt-ssh that asks if I want to deploy the salt-ssh key.
I have a roster file with nearly 100 hosts, some of which I don't have access to yet (during a 'transition').
Several of those 15 hosts are appliances where
I even tried setting --priv=/dev/null without success. Strangely salt-ssh says /dev/null already exists and asks if I want to overwrite it instead of failing to read/parse it and perhaps not prompting to deploy a key that doesn't exist.
I would love to see 'no prompts of any kind' be the default, but even having a flag like --not-interactive to turn it all off would be great.
Steps to Reproduce Issue
Add a host to your roster file that doesn't have your SSH key (or your salt-ssh key). It appears it asks by default even with you don't supply the --askpass flag.