Через subprocess.Popen вызываем процесс:
command = 'ssh user@host cp src dst'
p = Popen(command, stdin=PIPE, stdout=PIPE)
>>> stdout, stderr = p.communicate()
>>> print(stdout, stderr)
None None
>>> p.wait()
>>> out = p.stdout.read()
>>> print(out)
PROFIT!