sshcec/files.py

14 lines
338 B
Python

import paramiko
transport = paramiko.Transport(("linux-lab-055.ece.uw.edu", 22))
transport.connect(None, "hyu3", ":Eric200002182919")
# Go!
sftp = paramiko.SFTPClient.from_transport(transport)
sftp.chdir("Documents")
print(sftp.listdir())
# sftp.put('VNC_UWEE.jar', 'VNC_UWEE.jar')
# sftp.get('concentration.csv','concentration.csv')