°Ô½Ã¹° 1,369°Ç
   
file transfer - nc, pv
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-05-18 (¼ö) 11:24 Á¶È¸ : 3393
±ÛÁÖ¼Ò :
                                



Å×½ºÆ® ȯ°æ

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/

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.