Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82215 > unrolled thread

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

Started by"alister" <alister@1:249/999.remove-cdt-this>
First post2014-12-09 11:32 -0500
Last post2014-12-09 11:32 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Re: why can't download file from linux server into local window disk c: "alister" <alister@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500
    Re: why can't download file from linux server into local window disk c: "Tim Chase" <tim.chase@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500

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

From"alister" <alister@1:249/999.remove-cdt-this>
Date2014-12-09 11:32 -0500
SubjectRe: why can't download file from linux server into local window disk c:
Message-ID<54866F2E.1753.complang@piz.noip.com>
  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 users to write directly to C:. Have you
>> tried to save the file to your Documents folder?
>>
>> Regards,
>> Alba
>
> no, it's the ssh-server denying a log on from 'root'

windows systems dont usualy have an SSH server & root is not a normal
windows user name

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 someone who is authorised.






--
Do you know Montana?

--- SoupGate-Win32 v1.05
 * Origin: <SpaceSST.BBS.Fidonet<>NNTP.gateway.@.piz.noip.me> (1:249/999)
--- Synchronet 3.15b-Win32 NewsLink 1.92
SpaceSST BBS Usenet <> Fidonet Gateway

[toc] | [next] | [standalone]


#82220

From"Tim Chase" <tim.chase@1:249/999.remove-cdt-this>
Date2014-12-09 11:32 -0500
Message-ID<54866F2E.1758.complang@piz.noip.com>
In reply to#82215
  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 the server then you need assistance from someone who is
> authorised.

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 there.  But at least there's a
middle ground that isn't as vulnerable as putting a root account out
there to be banged on by any script-o-matic bot that finds it.

I also like to change my external SSH port to something
non-traditional (and have configured port-knocking in the past) to
prevent the obvious pokes I would otherwise see in my sshd/auth/access
logs.

-tkc

--- SoupGate-Win32 v1.05
 * Origin: <SpaceSST.BBS.Fidonet<>NNTP.gateway.@.piz.noip.me> (1:249/999)
--- Synchronet 3.15b-Win32 NewsLink 1.92
SpaceSST BBS Usenet <> Fidonet Gateway

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web