Hello,

(Software versions used: Gordon Chaffee's winnt-4.0-x86 build of command
 line ssh 1.2.14 from ftp://ftp.cs.hut.fi/pub/ssh/contrib, all UNIX are
 1.2.27.

 I am aware that there are ports of 1.2.22 and 1.2.27 (hello Raju,
 Sergey) on Winduhs, but I would prefer not to have to use anything
 that requires either Cygnus, or faking local password entries, or
 anything to make it look even remotely UNIX. It's not just one or
 two PC's I have to deal with and the less kludging the better.)

An associate is trying to recursively copy a directory from his PC to a
UNIX box using the obvious

scp -r localdir userid@host:remotedir

After successful authentication, this fails with:

localdir: Permission denied

The user does have permission to create new files in the remote directory.

Copying single files works fine, copying directories the other way (UNIX
to PC) works fine, copying directories between UNIX boxes works fine.
FascistLogging turned on on the server shows nothing unusual compared to
a similar but successful UNIX scp session, except that the exit status is
1 on the Winduhs one.

Here's the session log from the PC end:

> C:\>scp -v -r localdir userid@host:/tmp
> Executing: host host, user userid, command scp -v -r -t /tmp
> SSH Version 1.2.14 [winnt-4.0-x86], protocol version 1.4.
> Standard version.  Does not use RSAREF.
> ssh_connect: getuid 0 geteuid 0 anon 0
> Connecting to host [n.n.n.n] port 22.
> Connection established.
> Remote protocol version 1.5, remote software version 1.2.27
> Waiting for server public key.
> Received server public key (768 bits) and host key (1536 bits).
> Host 'host' is known and matches the host key.
> Initializing random; seed file R:\SSH/.ssh/random_seed
> Encryption type: idea
> Sent encrypted session key.
> Received encrypted confirmation.
> Remote: Server does not permit empty password login.
> Doing password authentication.
> Password:
> Sending command: scp -v -r -t /tmp
> Entering interactive session.
> localdir: Permission denied
> Transferred: stdin 33, stdout 1, stderr 0 bytes in 1.0 seconds
> Bytes per second: stdin 33.0, stdout 1.0, stderr 0.0
> Exit status 1

-- 
Atro Tossavainen - email available at URL below - +358-9-850-111-86
http : / / www . iki . fi / atro . tossavainen /

Reply via email to