Trisurf Monte Carlo simulator
Samo Penic
2016-05-18 aad5008716b9f53c40233a8d891bea82d1b3e5f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python3
import paramiko
 
ssh = paramiko.SSHClient()
#ssh.load_host_keys(os.path.expanduser(os.path.join("~", ".ssh", "known_hosts")))
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('hostname', username='', password='',port=22,timeout=5)
stdin, stdout, stderr = ssh.exec_command('df -h')
x=stdout.readlines()
sftp = ssh.open_sftp()
#sftp.put(localpath, remotepath)
sftp.close()
ssh.close()
print (x)