data streaming using SFTP

Daniel Kahn Gillmor dkg-openssh.com at fifthhorseman.net
Wed Oct 11 12:22:40 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On October 10, william at 25thandClement.com said:

> On Tue, Oct 10, 2006 at 03:44:27PM -0700, behnam rashidian wrote:
> > Sorry to interrupt, just a quick question...
> > 
> > I need to find out if openssh has any functions that would read
> > some memory chuck and transfer that chunk over SSH ( what I mean
> > here is SFTP), except that I don't want it to open a file and read
> > it and transfer it since there will not be enough storage space to
> > store files. Therefore I need to have some functions that would
> > stream the data as they arrive on the fly. Please let me know if
> > such function exists in this package.
> > 
> 
> Why must you use SFTP, which is a "file transfer protocol"?
> 
> What you want is trivial with straight SSH:
> 
> 	ssh foo at host cat /some/file | process_file
> 
> or
> 	cat /some/file | ssh foo at host process_file

Alternately, if your data is already coming in via TCP/IP, you could
look at the LocalForward (-L) and RemoteForward (-R) options for
openssh.  man ssh_config or man ssh and grep for those options for
more details.

	--dkg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFFLFUPiXTlFKVLY2URAkhFAKC5UCaavaZ4DIy6fiqevazmbctklQCeLhNw
b4nxfk+FhiF5/izRNO3eBiE=
=7ouR
-----END PGP SIGNATURE-----



More information about the openssh-unix-dev mailing list