- proc1 = subprocess.Popen(['ssh', login, command], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell = False)
+ proc1 = subprocess.Popen(['ssh',
+ '-o', 'StrictHostKeyChecking=no',
+ login,
+ command],
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell = False)