diff --git a/wetb/utils/cluster_tools/ssh_client.py b/wetb/utils/cluster_tools/ssh_client.py index 39d2f7c81fc5ebcc0dcb14f3b5b60f4873c79cf0..fbc24bb113960c8c3229140b14e07d815c0f6ad0 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')