summaryrefslogtreecommitdiff
path: root/bupper/ssh_remote.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-02-13 21:39:41 +0100
committerAnton Khirnov <anton@khirnov.net>2020-02-13 21:39:41 +0100
commitf1ef9c053c84515761f59412a91ca3adbc8e7392 (patch)
tree9adfb42a73cf1aa61556d16ee5665e6c3f611dd4 /bupper/ssh_remote.py
parentb476a22f4a85d90ccaec2ee27a528d5bfe428a82 (diff)
Move the python files to a package.
Diffstat (limited to 'bupper/ssh_remote.py')
-rw-r--r--bupper/ssh_remote.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/bupper/ssh_remote.py b/bupper/ssh_remote.py
new file mode 100644
index 0000000..89e8f17
--- /dev/null
+++ b/bupper/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