Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set passphrase for salt-ssh keys to empty string #293

Merged
merged 1 commit into from Nov 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion salt/client/ssh/shell.py
Expand Up @@ -44,7 +44,7 @@ def gen_key(path):
'''
Generate a key for use with salt-ssh
'''
cmd = ["ssh-keygen", "-P", '""', "-f", path, "-t", "rsa", "-q"]
cmd = ["ssh-keygen", "-P", "", "-f", path, "-t", "rsa", "-q"]
if not os.path.isdir(os.path.dirname(path)):
os.makedirs(os.path.dirname(path))
subprocess.call(cmd)
Expand Down