Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82125
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.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.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'subject:file': 0.07; 'username,': 0.07; 'password)': 0.09; 'subject:into': 0.09; 'port))': 0.16; 'subject: \n ': 0.16; 'subject:download': 0.16; 'skip:p 40': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; 'permission': 0.26; 'host': 0.29; "skip:' 10": 0.31; '"",': 0.31; 'username': 0.31; 'file': 0.32; 'linux': 0.33; '(most': 0.33; 'subject:from': 0.34; 'received:google.com': 0.35; 'disk': 0.36; 'skip:" 50': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'server': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'fl:': 0.84; '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=08yzdsxfK3quHlj0/V8ib8TL+z2pMmwAW6aDZIQC2U0=; b=KOW0RcMtZp3bMTDhQVoUiY6umFyA/o8z/BEBEp+ConXLWwjotSu7Xt1RPNXtrgl8Zk 9LDKB6U92nV2CpSwVTqgBaz0Y1rMHRG6YYqIz+fwSR0sutgTKJVtOO+R4S3BTVrtxRNy 4Du0UHxeQJ77Uhu4TXFLlTtVp6LUKd/CmzqXU5v47FMPZtFZO96Bv6p5Hxx5vSB3aaeE eiOAJ9ikcDxQHb4oGdeIc9NKbBgIBn3aOCiUQWtIUOYpg0akCKC8CzMv7OaJRcz+5TrK 9pTm0TaqNEog0i5EIMwRbtefvG9WlCRwUNEsWADOwXVBNtfemlNUKxeqUqBxtfCIlt2/ SEOA== |
| X-Received | by 10.68.221.34 with SMTP id qb2mr61949965pbc.72.1418055275654; Mon, 08 Dec 2014 08:14:35 -0800 (PST) |
| Date | Tue, 09 Dec 2014 00:14:15 -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 | why can't download file from linux server into local window disk c:? |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| 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.16725.1418055279.18130.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1418055279 news.xs4all.nl 2898 [2001:888:2000:d::a6]:45737 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:82125 |
Show key headers only | View raw
My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server
into my local window disk c: .
import paramiko
host = "x.y.z.w"
port = 22
transport = paramiko.Transport((host, port))
password = "mykey"
username = "root"
transport.connect(username = username, password = password)
sftp = paramiko.SFTPClient.from_transport(transport)
filepath = '/etc/passwd'
localpath = 'c:'
sftp.get(filepath, localpath)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Python34\lib\site-packages\paramiko\sftp_client.py", line
719, in get
with open(localpath, 'wb') as fl:
PermissionError: [Errno 13] Permission denied: 'c:'
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
why can't download file from linux server into local window disk c:? pengsir <elearn2014@gmail.com> - 2014-12-09 00:14 -0800 Re: why can't download file from linux server into local window disk c:? Luuk <luuk@invalid.lan> - 2014-12-08 17:37 +0100 Re: why can't download file from linux server into local window disk c:? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2014-12-08 20:36 +0100 Re: why can't download file from linux server into local window disk c:? Nobody <nobody@nowhere.invalid> - 2014-12-08 22:25 +0000
csiph-web