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
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
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
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
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"
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
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"
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo