Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
* HanIRCÀÇ #coffeenix ¹æ
[ Àåºñ ¹× ȸ¼± ÈÄ¿ø ]
HOME > ½Ã½ºÅÛ °ü¸® / ¼­¹ö¿î¿µ > µð½ºÅ© °ü¸® / ÆÄÀϽýºÅÛ / mount µµ¿ò¸»
°Ë»ö : »çÀÌÆ® WHOIS À¥¼­¹ö Á¾·ù


  sshfs·Î ¿ø°Ý ÆÄÀϽýºÅÛÀ» ¸¶¿îÆ®Çؼ­ »ç¿ëÇϱâ ÀÛ¼ºÀÏ : 2007/05/20 22:21
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 26622
          [ ÀÌÀüÈ­¸é / ¼öÁ¤ ]   ºñ¹Ð¹øÈ£ :     Àμâ¿ë È­¸é
      Á¦  ¸ñ : sshfs·Î ¿ø°Ý ÆÄÀϽýºÅÛÀ» ¸¶¿îÆ®Çؼ­ »ç¿ëÇϱâ
    ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel)
    ÀÛ¼ºÀÏ : 2007.5.19(Åä)

    1. sshfs¿Í FUSE °³¿ä

    ¾ó¸¶Àü¿¡ 'Redhat Enterprise Linux securely mount remote Linux / UNIX directory or file system using SSHFS ( http://www.cyberciti.biz/tips/rhel-centos-mounting-remote-filesystem-using-sshfs.html )' Á¦¸ñÀÇ ±ÛÀ» ºÃ´Ù.
    ¿¹Àü¿¡µµ sshfs¿¡ ´ëÇÑ ±ÛµéÀº ºÃÀ¸³ª »ç¿ëÀº Çغ¸Áö ¾Ê´Ù°¡ scp·Î ÆÄÀÏ º¹»ç¸¦ ÀÚÁÖ ÇؾßÇß´ø ÃÖ±Ù ÀÏÀ» ¶°¿Ã·È´Ù. Á» ´õ ÆíÇÏ°í ³ªÀº ¹æ¹ýÀÌ Àִµ¥, ±»ÀÌ µ¹¾Æ°¥ ÇÊ¿ä°¡ ¹¹°¡ Àְڴ°¡. ÀÏ»óÀûÀÎ »ç¿ëÀ» À§ÇØ Çϳª¾¿ »ìÆ캸¾Ò´Ù.

    ssh¸¦ ÅëÇØ ¿ø°ÝÁö ÆÄÀϽýºÅÛÀ» ·ÎÄÿ¡ ¸¶¿îÆ®ÇÏ´Â sshfs¸¦ »ç¿ëÇϱâ À§Çؼ­´Â ¸ÕÀú FUSE°¡ ÇÊ¿äÇÏ´Ù.
    FUSE(Filesystem in Userspace)Àº Ä¿³ÎÀÌ ¾Æ´Ñ À¯Àú°ø°£¿¡¼­ ±¸ÇöÇÒ ¼ö ÀÖ´Â ÆÄÀϽýºÅÛÀ¸·Î Linux, FreeBSD, Max OSX(MaxFUSE¶ó°í ºÎ¸¨´Ï´Ù.)¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ´Ù. À̵é OS¿¡¼­´Â FUSE ±â¹ÝÀÇ ´Ù¾çÇÑ ÆÄÀϽýºÅÛÀ» ¸À º¼ ¼ö ÀÖ´Ù.

    - Áö±Ý ¼Ò°³ÇÏ´Â sshfs¸¦ ºñ·ÔÇÏ¿©,
    - ¸®´ª½º¿¡¼­ NTFSÆÄÀϽýºÅÛÀ» »ç¿ëÇϱâ À§ÇÑ ntfsmount,
    - ¸®´ª½º¿¡¼­ NTFSÆÄÀϽýºÅÛÀ» ÀÐ°í ¾µ¼ö ÀÖ´Â Captive NTFS,
      ( Captive NTFS¿¡ ´ëÇؼ­´Â 2003³â 11¿ù¿¡ '¸®´ª½º¿¡¼­ NTFS ÆÄÀϽýºÅÛ ÀÐ°í ¾²±â' ( http://coffeenix.net/board_view.php?bd_code=120 )¶õ Á¦¸ñÀÇ ±ÛÀ» ½áµÐ°Ô ÀÖÀ¸´Ï Âü°íÇϱ⠹ٶõ´Ù. )
    - NTFSÆÄÀϽýºÅÛÀ» ÀÐ°í ¾²´Â ¶Ç´Ù¸¥ µå¶óÀ̹öÀÎ NTFS-3G,
    - BitTorrent ÀÇ ÆÄÀÏÇü½ÄÀÎ .torrent ¸¦ ÆÄÀϽýºÅÛÀ¸·Î ¸¶¿îÆ®ÇÏ´Â BitTorrent File System,
    - ¿ÀǼֶ󸮽ºÀÇ ZFS ÆÄÀϽýºÅÛÀ» ¸®´ª½º¿¡¼­ »ç¿ëÇϱâ À§ÇÑ ZFS on FUSE, ( 'Google Summer of Code 2006'ÀÇ °á°ú¹° Áß Çϳª )
    - GmailÀ» ÆÄÀϽýºÅÛó·³ »ç¿ëÇÏ´Â GmailFS

    µî FUSE·Î ÀÎÇØ ÆÄÀϽýºÅÛÀÇ È®ÀåÀº º®ÀÌ ¾ø¾îÁ³´Ù.
    FUSE´Â ÇöÀç ¸®´ª¼­ Ä¿³Î 2.6.14 ÀÌ»ó¿¡ °ø½ÄÀûÀ¸·Î Æ÷ÇԵǾî ÀÖÁö¸¸, ¸®´ª½º 2.6.14ÀÌ»óÀ» ¾²Áö ¾Ê¾Æµµ µÈ´Ù. Ä¿³Î¿¡ Æ÷ÇÔÀÌ ¾ÈµÇ¾î ÀÖÀ» »Ó FUSE ¹Þ¾Æ¼­ ¼³Ä¡ÇÏ¸é µÇ´Ï±ñ.

    2. FUSE¿Í sshfs ¼³Ä¡

    FUSE¿Í sshfs ¼³Ä¡´Â ³Ê¹« ½¬¿ì´Ï °£´ÜÈ÷ ¼³¸íÇÑ´Ù.

    http://fuse.sourceforge.net/ ¿¡¼­ FUSE ¼Ò½º¸¦ ¹Þ´Â´Ù.
    ¸®´ª½º Ä¿³Î 2.6.9 ÀÌ»óÀÎ °æ¿ì´Â FUSE 2.6.X ¹öÀüÀ» ¹Þ°í, Ä¿³Î 2.6.9º¸´Ù ³·°í 2.4.21º¸´Ù ³ôÀ¸¸é FUSE 2.5.x ¹öÀüÀ» ¹ÞÀ¸¸é µÈ´Ù.

     
    ./configure
    make
    make install
     


    ±×¸®°í, /etc/ld.so.conf ¿¡ /usr/local/lib ¸¦ ³Ö°í ldconfig ¸í·ÉÀ» ³»·ÁÁØ´Ù.

    sshfs¸¦ ¼³Ä¡Çغ¸ÀÚ. sshfs Ȩ( http://fuse.sourceforge.net/sshfs.html )¿¡¼­ ¼Ò½º¸¦ ¹Þ´Â´Ù.

     
    ./configure
    make
    make install
     


    3. sshfs·Î ¸¶¿îÆ®Çϱâ

    sshfs ¸í·É »ç¿ëÀº °£´ÜÇÏ´Ù. ssh¿Í scp ¸í·É°ú ºñ½ÁÇÏ´Ù. ´ÙÀ½ ¸í·ÉÀ» º¸¸é Á¢¼ÓÇÒ ¼­¹ö¸í°ú ¸¶¿îÆ®ÇÒ Æ÷ÀÎÆ®¸¸ ÁöÁ¤ÇØÁÖ¸é ³¡³­´Ù.

     
    $ sshfs truefeel@coffeenix: /home/truefeel/mount/master/
    Password:
     


    df¸í·É°ú mount ¸í·ÉÀ¸·Î È®ÀÎÇغ¸ÀÚ. ¸¶¿îÆ®°¡ Á¤»óÀûÀ¸·Î µÆÀ½À» È®ÀÎÇÒ ¼ö ÀÖÀ¸³ª ¿ë·® Ç¥½Ã´Â Á¤»óÀûÀ¸·Î Ç¥½ÃµÇÁö ¾Ê¾Ò´Ù.

     
    $ df -h
    Filesystem            Size  Used Avail Use% Mounted on
    ... »ý·« ...
    sshfs#master:        1000G     0 1000G   0% /home/truefeel/mount/master
    $ mount
    ... »ý·« ...
    sshfs#master: on /home/truefeel/mount/master type fuse (rw,nosuid,nodev,large_read,max_read=65536,user=truefeel)
     


    sshfs¸¦ ÇÒ ¶§ ¿ø°ÝÁö ssh¼­¹öÀÇ UID¿Í GID°¡ ·ÎÄà »ç¿ëÀÚ°¡ ´Ù¸¦ °æ¿ì ¾×¼¼½º°¡ ¾ÈµÇ´Â °æ¿ìµµ Àִµ¥, ÀÌ ¶§´Â -o allow_other (NFS¿¡¼­ /etc/exportsÆÄÀÏÀÇ all_squash ¿É¼ÇÀ¸·Î º¸¸é µÊ)À̳ª -o uid=UID, -o gid=GID ¿É¼ÇÀ¸·Î ÇØ°á ÇÒ ¼ö ÀÖ´Ù.

    sshfs ¸í·É ½ÇÇàÁß¿¡ ¹ß»ýÇÒ ¼ö ÀÖ´Â 2°¡Áö ¿¡·¯¿¡ ´ëÇØ »ìÆ캸ÀÚ.

    1) sshfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory
       libfuse.so.2 °øÀ¯ ¶óÀ̺귯¸®¸¦ ãÁö ¸øÇؼ­ ¹ß»ýÇÑ °ÍÀÌ´Ù. '2. FUSE¿Í sshfs ¼³Ä¡'Áß¿¡ /etc/ld.so.conf ¼³Á¤°ú ldconfig ¸í·ÉÀ¸·Î ÇØ°áÇÒ ¼ö ÀÖ´Ù.

    2) fusermount: fuse device not found, try 'modprobe fuse' first
       fuse Ä¿³Î ¸ðµâÀÌ ·ÎµùµÇÁö ¾Ê¾Ò´Ù. modprobe fuse ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.

    ÀÌÁ¦ »ç¿ë ¿Ï·áÇßÀ¸¸é unmount¸¦ Çغ¸ÀÚ. unmount´Â fusermount ¸í·É ¶Ç´Â umount ¸í·ÉÀ¸·Î ÇÒ ¼ö ÀÖ´Ù.

     
    $ fusermount -u /home/truefeel/mount/master/
     


    4. Âü°í ÀÚ·á

    * Redhat Enterprise Linux securely mount remote Linux / UNIX directory or file system using SSHFS
      http://www.cyberciti.biz/tips/rhel-centos-mounting-remote-filesystem-using-sshfs.html
    * How to mount a remote ssh filesystem using sshfs
      http://ubuntu.wordpress.com/2005/10/28/how-to-mount-a-remote-ssh-filesystem-using-sshfs/

    * Filesystem in Userspace
      http://fuse.sourceforge.net/
    * PYRASIS°¡ º¸´Â Winter of Code 2006
      http://www.pyrasis.com/main/Blog/CodeAndSoftware/2006-12

      Ä¿ÇǴнº Ä«Æä ÃÖ±Ù ±Û
    [12/17] Youtubeñò
    [12/17] ¹®ÀÇ¿ä
    [12/15] ±¹³» &#
    [12/15] °ú°Å&#5
    [12/13] IGæðÚ¦&
    [12/13] »ï¼º&#5
    [12/12] ±¹°¡&#5
    [12/12] ±¹°¡&#5
    [12/11] ±¹³»&#5
    [12/10] Çö´ë&#5
    [12/10] ±¹°¡&#5
    [12/10] ±¹°¡&#5
    [12/09] Çö´ë&#5
    [12/09] ±¹°¡&#5
    [12/08] °ú°Å&#5
      New!   ÃÖ±Ù¿¡ µî·ÏÇÑ ÆäÀÌÁö
      KiCad EDA Suite project (Free/Libre/Open-Source EDA Suite) (CAD)
      ¿ÀÇÂij½ºÄÉÀ̵å ijµå (OpenCASCADE CAD)
      QCad for Windows --- GNU GPL (Free Software)
      The Hello World Collection
      IPMI¸¦ È°¿ëÇÑ ¸®´ª½º ¼­¹ö°ü¸®
      DNS ¼³Á¤ °Ë»ç
      nagiosgraph ¼³Ä¡ ¹æ¹ý
      Slony-I ¼³Ä¡ ¹æ¹ý (postgresql replication tool)
      Qmail±â¹ÝÀÇ Anti spam ½Ã½ºÅÛ ±¸ÃàÇϱâ
      clusterssh

    [ ÇÔ²²ÇÏ´Â »çÀÌÆ® ]




    ¿î¿µÁø : ÁÁÀºÁøÈ£(truefeel), ¾ß¼ö(yasu), ¹ü³ÃÀÌ, sCag
    2003³â 8¿ù 4ÀÏ~