From c7ed24c16594993eeb8b3982da7cebfc8181d3ee Mon Sep 17 00:00:00 2001
From: "Mads M. Pedersen" <mmpe@dtu.dk>
Date: Thu, 2 Feb 2017 14:52:58 +0100
Subject: [PATCH] fixed main example of ssh_client.py

---
 wetb/utils/cluster_tools/ssh_client.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/wetb/utils/cluster_tools/ssh_client.py b/wetb/utils/cluster_tools/ssh_client.py
index 39d2f7c..fbc24bb 100644
--- a/wetb/utils/cluster_tools/ssh_client.py
+++ b/wetb/utils/cluster_tools/ssh_client.py
@@ -250,12 +250,10 @@ class SharedSSHClient(SSHClient):
                         self.next = None
 
 if __name__ == "__main__":
-    from mmpe.ui.qt_ui import QtInputUI
-    q = QtInputUI(None)
-    x = None
-    username, password = "mmpe", x.password  #q.get_login("mmpe")
+    import getpass
+    username, password = "mmpe", getpass.getpass("Enter password")
 
 
     client = SSHClient(host='gorm', port=22, username=username, password=password)
-    print (client.glob("*.*", ".hawc2launcher/medium1__1__"))
+    print (client.execute("hostname"))
     #    ssh.upload('../News.txt', 'news.txt')
-- 
GitLab