How can I get a file on my local computer from vps ip with paramiko or some other way?

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?

+5
source share
1 answer

I think this may interest you: Here

This is the scyth python module for paramiko.

0
source

Source: https://habr.com/ru/post/1209311/


All Articles