2021-07-03

sshfs 掛載 (sshfs mount)

 

2021-07-03

sshfs : 透過 SSH 協定掛載遠端硬碟(Linux、 Mac OS X、 Windows)

  • 安裝 ( install )
    sudo apt install sshfs 
  • 掛載 ( mount ) , 要先有掛載目錄, 先建目錄
    mkdir /local/mountpoint/ 

    掛載

    sshfs user@remote-host:/remote/dir /local/mountpoint 
  • 卸載 ( umount )
    fusermount -u /local/mountpoint 
  • 開機掛載, 在 /etc/fstab 加入
    user@remote-host:/remote/dir  /local/mountpoint  fuse.sshfs  defaults  0  0 
  • MAC OS 安裝 FUSE for OS X
  • Windows 安裝 win-sshfs ( SSHFS client )

    note: MAC OS 及 Windows 詳細資料請自行上網找
 

沒有留言: