diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-01-08 09:43:40 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2019-01-09 13:51:34 +0100 |
commit | b476a22f4a85d90ccaec2ee27a528d5bfe428a82 (patch) | |
tree | b45dede35480fc6c3f421b5bb5c0286a129993a8 /ssh_remote.py | |
parent | 34dc258b7f39d3d7db8f4ed2abda03a67f202656 (diff) |
ssh/lvm/lxc backup wip
Diffstat (limited to 'ssh_remote.py')
-rw-r--r-- | ssh_remote.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ssh_remote.py b/ssh_remote.py new file mode 100644 index 0000000..89e8f17 --- /dev/null +++ b/ssh_remote.py @@ -0,0 +1,19 @@ +class SSHRemote: + """ + Specification of an SSH remote host, represented by a combination of host, + port and username, plus an optional proxy remote. + :param str host: + :param int port: + :param str username: + :param SSHRemote proxy_remote: proxy through which the connection should be + tunnelled + """ + host = None + port = None + username = None + proxy_remote = None + def __init__(self, host, port, username, proxy_remote = None): + self.host = host + self.port = port + self.username = username + self.proxy_remote = proxy_remote |