diff --git a/orchestra/apps/orchestration/methods.py b/orchestra/apps/orchestration/methods.py index 3bc65fb1..b5185fc5 100644 --- a/orchestra/apps/orchestration/methods.py +++ b/orchestra/apps/orchestration/methods.py @@ -55,6 +55,7 @@ def BashSSH(backend, log, server, cmds): # Copy script to remote server sftp = paramiko.SFTPClient.from_transport(transport) sftp.put(path, remote_path) + sftp.chmod(remote_path, '0600') sftp.close() os.remove(path)