diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-09-26 19:37:43 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-09-28 08:57:53 +0000 |
commit | 9604ecc50eae62689235e3e29eefa30be13676ed (patch) | |
tree | a790d32a90d047e393d99e4e6fa621f90a77072e | |
parent | 976a8d1cfd6b47c4266dd47d659be7aa4af98459 (diff) | |
download | ciat-tester-9604ecc50eae62689235e3e29eefa30be13676ed.tar.gz |
Only allow ssh with private keys
-rwxr-xr-x | tester | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -157,6 +157,7 @@ class System(object): def runcmd(self, argv, user='root', chdir='.', **kwargs): print(str(self) + 'Running command as ' + user + ': ' + argv[-1]) ssh_cmd = ['ssh', '-o', 'StrictHostKeyChecking=no', + '-o', 'BatchMode=yes', '-o', 'UserKnownHostsFile=/dev/null', self.ssh_host(user)] cmd = ['sh', '-c', 'cd "$1" && shift && exec "$@"', '-', chdir] cmd += argv |