Petr Laznovsky <
nob...@nowhere.com> wrote:
> Trying to backup config file from network box, but have no luck:
> --------------------------------------------------------------
> C:\>pscp.exe -scp -pw password -2 -v login@hostname:/tmp/system.cfg
> "E:\backup\krabky\configs\"
[...]
> pscp: E:\backup\krabky\configs": Cannot create file
My first thought about that error message is that the " at the end of
the filename is suspicious - it's not matched by one at the start of
the filename, which is a clue that perhaps it's not part of the format
of the error message but has instead found its way into the actual
filename string. That would certainly explain an error like that, if
the SSH server were trying to create a file whose name was a single "
character.
And in fact, having had that thought, it seems clear what's happened.
Your command line ends in \", which Windows's quoting rules probably
take to mean a literal " character (as opposed to one which terminates
a double-quoted string). So by the time PSCP even receives your
command line, it's already not saying what you wanted it to say.
Try taking those double quotes out of your command and see if that
helps.
--
import hashlib; print (lambda p,q,g,y,r,s,m: m if (lambda w:(pow(g,int(hashlib.
sha1(m).hexdigest(),16)*w%q,p)*pow(y,r*w%q,p)%p)%q)(pow(s,q-2,q))==r else "!"
)(0xb80b5dacabab6145, 0xf70027d345023, 0x7643bc4018957897, 0x11c2e5d9951130c9,
0xa54d9cbe4e8ab, 0x746c50eaa1910, "Simon Tatham <
ana...@pobox.com>")