Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82593
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <elearn2014@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.137 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.73; '*S*': 0.00; 'subject:file': 0.07; 'subject: \n ': 0.16; 'import': 0.22; 'header:User-Agent:1': 0.23; 'installed': 0.27; 'skip:p 30': 0.29; 'network.': 0.30; 'subject:other': 0.31; 'subject:some': 0.31; 'way?': 0.31; 'file': 0.32; 'subject:the': 0.34; 'subject:from': 0.34; 'problem': 0.35; 'subject:with': 0.35; 'skip:s 30': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'received:10': 0.37; 'area': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'charset:gbk': 0.60; 'subject:get': 0.81; 'received:10.32': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=lr1gkgiaq3R6374OsyzGeDrwcFTZ/Hi2ELpp3of8xYc=; b=nKE8B/P+aSCvGelP4g9pCMqiHojpo8LL8wtPkcJR0EEjcPJPnC+IWCbZzoIUYpgIiy 8IrE/hXl/1SmxrMRjnbkVG2NBHimEOJUMvPqBMDMENhpdNohKiBLUJv36ViJpaBd+V55 NU++/9vDCQNThoiT7oljNDr75dCxadZfchbWsTQgKED79waoCT0Z7PeJae8xa4TW88+z fthTpGQG7cW0mUkG2sWzU3w84aKXEOMA/6nP81LTmzW4x4oep04FcDOFKxVvA2IzU/bI rw34K3xGS3ZFd63HiAhAG1MGZrCZUBFbGj7MJm8nKf2uGJDTUD+IXDEjww9T0ACT3/iy yNQA== |
| X-Received | by 10.66.139.162 with SMTP id qz2mr67486103pab.92.1418805326704; Wed, 17 Dec 2014 00:35:26 -0800 (PST) |
| Date | Wed, 17 Dec 2014 16:35:03 -0800 |
| From | pengsir <elearn2014@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | how can i get the file on my local pc from vps ip with paramiko or by some other way? |
| Content-Type | text/plain; charset=gbk; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17004.1418805330.18130.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1418805330 news.xs4all.nl 2856 [2001:888:2000:d::a6]:52721 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:82593 |
Show key headers only | View raw
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?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
how can i get the file on my local pc from vps ip with paramiko or by some other way? pengsir <elearn2014@gmail.com> - 2014-12-17 16:35 -0800
csiph-web