Skip to content
Snippets Groups Projects
Commit c7ed24c1 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

fixed main example of ssh_client.py

parent 6551d82b
No related branches found
No related tags found
No related merge requests found
......@@ -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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment