Is sftp-server's stdout redirected to client ?

Avraham Fraenkel - Commatch avraham.fraenkel at commatch.com
Tue Jan 7 19:10:43 EST 2003


Hello,
  Another suggestion - redirect the command output to stderr, this will go
  to the sftp-client stderr and (in openssh client) will showed on the
screen.
  (The syntax depend on the shell on the server).
  In the sftp protocol there is no way to send data to the client in any
other way.
--
 Avraham
---------------------------------------


Markus Friedl Wrote:

this won't work. you need to extend the sftp protocol.

sftp-server prints the messages to stdout and
expencts the requests from the client on stdin.

i don't think this change makes sense.


On Sun, Jan 05, 2003 at 10:12:45PM -0500, zhang at csee.wvu.edu wrote:
> Hello everyone,
> 
> I added some code to sftp, which would be useful for me. I add a
> command "run", which can run any command on the remote shell, in the mean
> time I want the server send the standard output back. for example, when I
:
> 
> sftp> run ls
> 
> I want to see the result locally.
> 
> I thought the stdout of sftp-server has been redirected to the client. But
> I get "message too long" error. When I check the received buffer, it do
> have part of the server's standard output, but it is messed up.
> 
> How do I fix it? Thanks,
> 
> Hanzhou
> 
> 
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
_______________________________________________
openssh-unix-dev at mindrot.org mailing list
http://www.mindrot.org/mailman/listinfo/openssh-unix-dev



More information about the openssh-unix-dev mailing list