빈쿵바라기
좌충우돌 개발자의 기록
빈쿵바라기
전체 방문자
오늘
어제
  • 분류 전체보기 (53)
    • Programming (25)
      • JAVA (12)
      • Spring Boot (6)
      • JPA (7)
      • Python (0)
    • Database (12)
      • RDBMS (4)
      • NoSQL (7)
    • Server (11)
    • Elasticsearch (3)
    • ETC (2)

블로그 메뉴

    공지사항

    인기 글

    최근 댓글

    최근 글

    티스토리

    hELLO · Designed By 정상우.
    빈쿵바라기

    좌충우돌 개발자의 기록

    Server

    [CentOS] SSHFS 리눅스 원격 폴더 마운트

    2023. 2. 17. 17:33

    SSHFS Reference

    https://help.ubuntu.com/community/SSHFS

     

    SSHFS 설치

    $ yum install epel-release -y
    $ yum install fuse sshfs -y

     

    SSHFS Mount

    $ sshfs user@host:/dir mountpoint [options]

     

    SSHFS Options

    $ sshfs --help
    
    SSHFS options:
        -p PORT                equivalent to '-o port=PORT'
        -C                     equivalent to '-o compression=yes'
        -F ssh_configfile      specifies alternative ssh configuration file
        -1                     equivalent to '-o ssh_protocol=1'
        -o reconnect           reconnect to server
        -o delay_connect       delay connection to server
        -o sshfs_sync          synchronous writes
        -o no_readahead        synchronous reads (no speculative readahead)
        -o sync_readdir        synchronous readdir
        -o sshfs_debug         print some debugging information
        -o cache=BOOL          enable caching {yes,no} (default: yes)
        -o cache_max_size=N    sets the maximum size of the cache (default: 10000)
        -o cache_timeout=N     sets timeout for caches in seconds (default: 20)
        -o cache_X_timeout=N   sets timeout for {stat,dir,link} cache
        -o cache_clean_interval=N
                               sets the interval for automatic cleaning of the
                               cache (default: 60)
        -o cache_min_clean_interval=N
                               sets the interval for forced cleaning of the
                               cache if full (default: 5)
        -o workaround=LIST     colon separated list of workarounds
                 none             no workarounds enabled
                 [no]rename       fix renaming to existing file (default: off)
                 [no]truncate     fix truncate for old servers (default: off)
                 [no]buflimit     fix buffer fillup bug in server (default: on)
                 [no]fstat        fix fstat for old servers (default: off)
        -o idmap=TYPE          user/group ID mapping (default: none)
                 none             no translation of the ID space
                 user             only translate UID/GID of connecting user
                 file             translate UIDs/GIDs contained in uidfile/gidfile
        -o uidfile=FILE        file containing username:remote_uid mappings
        -o gidfile=FILE        file containing groupname:remote_gid mappings
        -o nomap=TYPE          with idmap=file, how to handle missing mappings
                 ignore           don't do any re-mapping
                 error            return an error (default)
        -o ssh_command=CMD     execute CMD instead of 'ssh'
        -o ssh_protocol=N      ssh protocol to use (default: 2)
        -o sftp_server=SERV    path to sftp server or subsystem (default: sftp)
        -o directport=PORT     directly connect to PORT bypassing ssh
        -o slave               communicate over stdin and stdout bypassing network
        -o disable_hardlink    link(2) will return with errno set to ENOSYS
        -o transform_symlinks  transform absolute symlinks to relative
        -o follow_symlinks     follow symlinks on the server
        -o no_check_root       don't check for existence of 'dir' on server
        -o password_stdin      read password from stdin (only for pam_mount!)
        -o SSHOPT=VAL          ssh options (see man ssh_config)

     

     

    SSHFS Unmount

    $ fusermount -u local_mount_point

     

    SSHFS 사용예제

    -- mount
    $ sshfs test@172.24.1.10:/data /mnt/data -o allow_other,reconnect
    -- unmount
    $ fusermount -u /mnt/data
    저작자표시 (새창열림)

    'Server' 카테고리의 다른 글

    리눅스 압축파일 내부 파일목록 보기  (0) 2023.08.23
    jar로 패키징 된 application 파일들 중 일부 수정하는 방법  (0) 2023.08.22
    [CentOS] Jenkins로 Tomcat에 자동 배포 자동화  (0) 2023.01.13
    [CentOS] Jenkins 와 GitHub 연동하기  (0) 2023.01.13
    [CentOS] Jenkins 설치방법  (0) 2022.12.13
      'Server' 카테고리의 다른 글
      • 리눅스 압축파일 내부 파일목록 보기
      • jar로 패키징 된 application 파일들 중 일부 수정하는 방법
      • [CentOS] Jenkins로 Tomcat에 자동 배포 자동화
      • [CentOS] Jenkins 와 GitHub 연동하기
      빈쿵바라기
      빈쿵바라기
      삽질하는 개발자의 좌충우돌 개발기

      티스토리툴바