Skip to content

Commit

Permalink
Set passphrase for salt-ssh keys to empty string (#293)
Browse files Browse the repository at this point in the history
Since the cmd is not passed to a shell anymore, the "" are taken
literally and not as an empty string.

Bugzilla report: https://bugzilla.suse.com/show_bug.cgi?id=1178485
  • Loading branch information
agraul committed Nov 5, 2020
1 parent 7e2c41e commit 49ff503
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 49ff503

Please sign in to comment.