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

Improved main example of SSHClient

parent a2870b97
No related branches found
No related tags found
1 merge request!87Improved main example of SSHClient
Pipeline #6397 passed
......@@ -417,11 +417,10 @@ class SharedSSHClient(SSHClient):
if __name__ == "__main__":
from mmpe.ui.qt_ui import QtInputUI
q = QtInputUI(None)
x = None
username, password = "mmpe", x.password # q.get_login("mmpe")
client = SSHClient(host='gorm', port=22, username=username, password=password)
print(client.glob("*.*", ".hawc2launcher/medium1__1__"))
# ssh.upload('../News.txt', 'news.txt')
try:
import x
username, password = 'mmpe', x.password
client = SSHClient(host='jess.dtu.dk', port=22, username=username, password=password)
print(client.execute("echo hello $USER from $HOSTNAME")[1])
except ImportError:
x = None
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