@@ -0,0 +1,810 @@
+import os%0Aimport tempfile%0A%0AsshCmdLine = 'sshpass -p %7B0%7D ssh -o UserKnownHostsFile=%7B1%7D -o StrictHostKeyCheck=no %7B2%7D@%7B3%7D -o %7B4%7D'%0A%0Adef launch_shell (username, hostname, password, port = 22):%0A    %22%22%22%0A    Launches an ssh shell%0A    %22%22%22%0A    if not username or not hostname or not password:%0A        return False%0A    tmpFile = tempfile.mktemp()%0A    os.system(sshCmdLine.format(password, tmpFile, username, hostname, port))%0A    os.remove(tmpFile)%0A%0A    return True%0A%0Adef do_cmd (username, hostname, password, command, port = 22):%0A    %22%22%22%0A    Runs a command via ssh%0A    %22%22%22%0A    if not username or not hostname or not password or not command:%0A        return False%0A    tmpFile = tempfile.mktemp()%0A    os.system(%22%7B0%7D %7B1%7D%22.format(sshCmdLine.format(password, tmpFile, username, hostname, port), command))%0A    os.remove(tmpFile)%0A

Add ssh utils