Å×½ºÆ® ȯ°æ Ubuntu 14.04 LTS
# apt-get install netcat pv
º¸Åë ÆÄÀÏÀü¼ÛÇÒ¶§ ftp ³ª...scp¸¦ ÀÌ¿ëÇÏÁö¸¸....¿©±â¼´Â netcat (nc) ¿Í pv¸¦ ÀÌ¿ëÇؼ ¼¹ö°£ ÆÄÀÏÀü¼ÛÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù.
µ¥ÀÌŸ°¡ ÀÎÁõ¾øÀÌ ÁøÇàµÇ±â¿¡ Áß¿äÇÑ µ¥ÀÌŸ¸¦ Àü¼ÛÇÒ¶§´Â ±ÇÀåÇÏÁö ¾ÊÀ¸¸ç ºÎµæÀÌÇÑ È¯°æ¿¡¼ »ç¿ëÇÏ±æ ±ÇÀåÇÕ´Ï´Ù.
¡Ø pv - monitor the progress of data through a pipe
netcat(nc) — arbitrary TCP and UDP connections and listens
A¼¹ö : 172.16.210.31
B¼¹ö : 172.16.210.32
Àü¼ÛÆÄÀÏ : ubuntu-14.04-server-amd64.iso
¿©±â¼´Â Àü¼Û¼Óµµ Çâ»óÀ» À§ÇØ ¾ÐÃà°úÁ¤À» °ÅÃÄ 4879Æ÷Æ®¸¦ ¿ÀÇÂ(LISTEN)Çؼ A¼¹ö ÆÄÀÏ(ubuntu-14.04-server-amd64.iso)À» B·Î Àü¼ÛÇÏ´Â ¿¹Á¦ÀÌ´Ù.
A ¼¹ö
:: 4879 Æ÷Æ®·Î ÆÄÀÏÀü¼Û
# tar -zcf - ubuntu-14.04-server-amd64.iso | pv | nc -l -p 4879 -q 5
64kB 0:00:02 [ 0B/s] [ <=>
:: »õâ¿¡¼ Àü¼Û Æ÷Æ® LISTEN È®ÀÎ
# netstat -anlp |grep :4879
tcp 0 0 0.0.0.0:4879 0.0.0.0:* LISTEN 20404/nc
B ¼¹ö
:: A ¼¹ö(172.16.210.31) 4879 Æ÷Æ®·Î ÆÄÀÏ
Àü¼Û¹ÞÀ½
# nc 172.16.210.31 4879 | pv | tar -zxf -
298MB 0:00:12 [25.8MB/s] [ <=>
Ãâó
http://netcat.sourceforge.net/http://www.tecmint.com/transfer-files-between-two-linux-machines/