avocado.utils.ssh: introduce SSH utility library
This implements a connection wrapper around SSH, and requires the
OpenSSH client tools installed.
It uses a master connection for a number of reasons, including but not
limited to being able to distinguish between connection failures and
command execution failures.
Most of the command execution results are accurate and similar to
users of `avocado.utils.process.run()`: the exit status is preserved
for the local user inspection. The stdout and stderr, time taken to
execute the command (including the remote part) is also available.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
avocado/utils/ssh.py
0 → 100644
想要评论请 注册 或 登录