Is sftp-server's stdout redirected to client ?

Markus Friedl markus at openbsd.org
Mon Jan 6 20:45:59 EST 2003


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



More information about the openssh-unix-dev mailing list