Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Nobody
To: pengsir On Tue, 09 Dec 2014 00:14:15 -0800, pengsir wrote: > localpath = 'c:' > sftp.get(filepath, localpath) > with open(localpath, 'wb') as fl: > PermissionError: [Errno 13] Permission denied: 'c:' It's trying to open "c:", which is a drive, as if it was a file. You have to specify

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Tim Chase
To: Luuk Copy: python-list@python.org On 2014-12-08 19:11, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: > >> with open(localpath, 'wb') as fl: > >> PermissionError: [Errno 13] Permission denied: 'c:' > > > > I remember gloomily (haven't used windows since ages) that newer > > Windows vers

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Thomas Rachel
Am 08.12.2014 19:11 schrieb Luuk: > no, it's the ssh-server denying a log on from 'root' You are repating yourself. How could possibly with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' be a problem with the SSH server? --- SoupGate-Win32 v1.05 * Origi

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Thomas Rachel
Am 09.12.2014 09:14 schrieb pengsir: > My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server > into my local window disk c: . > localpath = 'c:' [...] > with open(localpath, 'wb') as fl: > PermissionError: [Errno 13] Permission denied: 'c:' That's completely clear: you ar

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread MRAB
To: pengsir On 2014-12-09 08:14, pengsir wrote: > > > 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"

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Chris Angelico
To: Luuk Copy: python-list@python.org (python-list@python.org) On Tue, Dec 9, 2014 at 5:11 AM, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> >> I remember gloomily (haven't used windows

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Luuk
To: pengsir On 9-12-2014 09:14, pengsir wrote: > > > 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" >

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Luuk
To: ishish On 8-12-2014 18:37, ishish wrote: >> with open(localpath, 'wb') as fl: >> PermissionError: [Errno 13] Permission denied: 'c:' > > I remember gloomily (haven't used windows since ages) that newer Windows > versions don't like users to write directly to C:. Have you tried to > save t

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Chris Angelico
To: Tim Chase Copy: python-list@python.org (python-list@python.org) On Tue, Dec 9, 2014 at 6:50 AM, Tim Chase wrote: > Just for the record, you can enable root logins but disallow password > logins, so root has to be done with a public/private key-pair. > > That said, I do as you describe and

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread Tim Chase
To: alister Copy: python-list@python.org On 2014-12-08 18:46, alister wrote: > on most systems that DO have a ssh server root logins are usually > prohibited, either enable root logins (dangerous) or log in with a > user that has permissions to do what you require. if you don't have > access to

why can't download file from linux server into local window disk c:?

2014-12-09 Thread pengsir
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 = para

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread alister
To: Luuk On Mon, 08 Dec 2014 19:11:40 +0100, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> I remember gloomily (haven't used windows since ages) that newer >> Windows versions don't like use

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread pengsir
It's trying to open the file 'c:', but that's not a file, it's a folder. Try, say, 'c:/passwd' instead. It works for me, i tried ,it is ok . -- https://mail.python.org/mailman/listinfo/python-list

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Nobody
On Tue, 09 Dec 2014 00:14:15 -0800, pengsir wrote: > localpath = 'c:' > sftp.get(filepath, localpath) > with open(localpath, 'wb') as fl: > PermissionError: [Errno 13] Permission denied: 'c:' It's trying to open "c:", which is a drive, as if it was a file. You have to specify the destinati

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Chris Angelico
On Tue, Dec 9, 2014 at 6:50 AM, Tim Chase wrote: > Just for the record, you can enable root logins but disallow password > logins, so root has to be done with a public/private key-pair. > > That said, I do as you describe and still SSH to my ssh-user account, > then "su" to root as needed from the

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Tim Chase
On 2014-12-08 18:46, alister wrote: > on most systems that DO have a ssh server root logins are usually > prohibited, either enable root logins (dangerous) or log in with a > user that has permissions to do what you require. if you don't have > access to the server then you need assistance from so

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Tim Chase
On 2014-12-08 19:11, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: > >> with open(localpath, 'wb') as fl: > >> PermissionError: [Errno 13] Permission denied: 'c:' > > > > I remember gloomily (haven't used windows since ages) that newer > > Windows versions don't like users to write directly t

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Thomas Rachel
Am 08.12.2014 19:11 schrieb Luuk: no, it's the ssh-server denying a log on from 'root' You are repating yourself. How could possibly with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' be a problem with the SSH server? -- https://mail.python.org/mailman

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Thomas Rachel
Am 09.12.2014 09:14 schrieb pengsir: My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server into my local window disk c: . localpath = 'c:' [...] with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' That's completely clear: you are n

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread alister
On Mon, 08 Dec 2014 19:11:40 +0100, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> I remember gloomily (haven't used windows since ages) that newer >> Windows versions don't like users to write

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread MRAB
On 2014-12-09 08:14, pengsir wrote: 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 = us

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Chris Angelico
On Tue, Dec 9, 2014 at 5:11 AM, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> >> I remember gloomily (haven't used windows since ages) that newer Windows >> versions don't like users to wr

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Luuk
On 8-12-2014 18:37, ishish wrote: with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' I remember gloomily (haven't used windows since ages) that newer Windows versions don't like users to write directly to C:. Have you tried to save the file to your Documen

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread ishish
with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' I remember gloomily (haven't used windows since ages) that newer Windows versions don't like users to write directly to C:. Have you tried to save the file to your Documents folder? Regards, Alba -- htt

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread Luuk
On 9-12-2014 09:14, pengsir wrote: 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 = use

why can't download file from linux server into local window disk c:?

2014-12-08 Thread pengsir
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