Yes, I tried with the trunk.
Using PuTTY (on Windows) I also have the problem in normal shell mode when
sending large results of shell commands (e.g. cat).
When I use the SSHD Client it does not block and when I use ssh from Linux
neither.
I copied the stack below.
Thread [VfsShell] (Suspended)
Object.wait(long) line: not available [native method]
Window(Object).wait() line: not available
Window.waitAndConsume(int) line: 124
ChannelOutputStream.flush() line: 89
ChannelOutputStream.write(byte[], int, int) line: 65
LoggingFilterOutputStream.write(byte[], int, int) line: 55
PrintStream.write(byte[], int, int) line: not available
FileUtil.writeContent(FileObject, OutputStream) line: 91
Cat.cat(FileObject, Engine) line: 36
Cat.execute(Arguments, Engine) line: 30
BoxedEngine(Engine).handleCommand(Arguments) line: 259
BoxedEngine(Engine).go() line: 100
VfsShell.run() line: 178
Thread.run() line: not available
> Date: Sun, 9 Aug 2009 10:40:42 +0200
> Subject: Re: [sshd] does scp works?
> From: [email protected]
> To: [email protected]
>
> On Sat, Aug 8, 2009 at 18:55, Frank van der Kleij<[email protected]> wrote:
> >
> > The SshClient is not scp enabled then?
>
> No, we don't have the client side yet.
>
> >
> > I am now trying with putty's pscp and it works better. I found a small
> > glitch for which I will submit a patch on JIRA. I still have a problem with
> > recursive copy on a folder;
> >
> > The Window class says: 'Waiting for 16384 bytes on server remote window'
> > and blocks...
>
> This does not look like an error specific to scp, but rather to the
> ssh protocol. Have you tried with the latest trunk, I've committed a
> few patches that might help.
>
> >
> >> Date: Sat, 8 Aug 2009 18:27:21 +0200
> >> Subject: Re: [sshd] does scp works?
> >> From: [email protected]
> >> To: [email protected]
> >>
> >> I only tried with the basic scp command from my mac. There may be
> >> compatibilities problems and it has not been extensively tested.
> >>
> >> On Sat, Aug 8, 2009 at 16:18, Frank van der Kleij<[email protected]> wrote:
> >> >
> >> > I am trying to write my own implementation of the ScpCommand using
> >> > Apache VFS FileObject io File, but I have several issues. Is anyone
> >> > using the ScpCommand?
> >> >
> >> > I copied the original and just patched it where needed so the problems I
> >> > have are likely to exist in the normal ScpCommand too.
> >> >
> >> > I am probably doing something wrong but I noticed the following:
> >> > 1. The last element of the command array is a newline character, but the
> >> > ScpCommand treats it as being the filepath. The sshd SshClient
> >> > explicitly puts a newline, the ScpCommandFactory splits at normal
> >> > whitespace only. I fixed it by looking at the element just before the
> >> > last. Is it part of the protocol?
> >> > 2. The server hangs on readAck(). I know nothing of the protocol; is
> >> > this a server problem or should the client send an ack?
> >> >
> >> > Which scp clients are compatible? I am using the SshClient of the sshd
> >> > project. I tried WinScp but it wants to open a bash shell and does not
> >> > seem to use pure scp...
> >> >
> >> > Thanks
> >> >
> >> >
> >> > _________________________________________________________________
> >> > See all the ways you can stay connected to friends and family
> >> > http://www.microsoft.com/windows/windowslive/default.aspx
> >>
> >>
> >>
> >> --
> >> Cheers,
> >> Guillaume Nodet
> >> ------------------------
> >> Blog: http://gnodet.blogspot.com/
> >> ------------------------
> >> Open Source SOA
> >> http://fusesource.com
> >
> > _________________________________________________________________
> > See all the ways you can stay connected to friends and family
> > http://www.microsoft.com/windows/windowslive/default.aspx
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
_________________________________________________________________
What can you do with the new Windows Live? Find out
http://www.microsoft.com/windows/windowslive/default.aspx