how can i get the file on my local pc from vps ip with paramiko or by some other way?
pengsir
elearn2014 at gmail.com
Wed Dec 17 19:35:03 EST 2014
I have an vps ,my local pc is in the local area network. When paramiko
installed on my local pc ,i can get file from my vps.
import paramiko
t = paramiko.Transport(("vps ip",22))
t.connect(username = "username", password = "key")
sftp = paramiko.SFTPClient.from_transport(t)
remotepath='/tmp/test.txt'
localpath='/tmp/test.txt'
sftp.get(remotepath,localpath)
Now the problem is :how can i get the file on my local pc from vps ip
with paramiko or by some other way?
More information about the Python-list
mailing list