romtools.hpc.connection#
Classes
|
A simple SSH connection class that uses subprocess to execute SSH and SCP commands. |
|
Simple class to encapsulate the result of a command execution. |
- class romtools.hpc.connection.Connection(host, user=None, port=None, persist_seconds=600)[source]#
Bases:
objectA simple SSH connection class that uses subprocess to execute SSH and SCP commands.
This uses connection multiplexing (ControlMaster) to reuse an existing connection per SSH session (thus only requiring authentication & handshakes once).