I have vps, my local computer is on the local network. When paramiko is installed on my local computer, I can get the 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 this: how can I get the file on my local computer from vps ip with paramiko or some other way?
source share