开发者

how to stream data in unix

How to stream data to a remote server in unix? I do not want to do ssh.

Currently what I am doing on local machine is: cat local_file | ssh root@remote_machine "cat >> remote_file"

But this file is large 开发者_StackOverflow中文版and I want a lighter way than ssh. I do not care about security or ack.


You could try netcat:

  • http://netcat.sourceforge.net/
  • http://www.linuxforums.org/articles/having-fun-with-netcat-_268.html


This is probably more of a server fault question, but I would recommend something like TFTP if you have access to the remote server. Otherwise, SCP is not a bad mechanism for file transfers.


You can potentially speed up the transfer by choosing a different encryption method for the ssh transfer, for example -c blowfish (this presumes that this is the cause of the slowdown you imply). The ssh manpage notes: blowfish is a fast block cipher; it appears very secure and is much faster than 3des. [...] The default is 3des.

As noted, scp would potentially be useful here; it takes the -c option, too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜