其實這之前就有裝過了,只是腦子太小......然後就忘記他的存在了...>"<
SSHFS主要功能是可以透過SSH(SFTP)去掛載遠端的檔案目錄,而且不需要用ROOT的權限即可達到掛載的能力。
不過相對的Linux Kernel 內必須要有 fuse 支援(可以用 lsmod | grep fuse 檢查)

1.安裝sshfs
by apt-get
#sudo apt-get install sshfs
by archlinux
#yaourt sshfs

2.進行掛載遠端目錄
#sshfs [user@]host:[dir] mountpoint [options]
EX:
#sshfs  username@123.456.78.9:/home/username ./mountpoint -p 22

其實這樣就掛載完了,很簡單吧:)

接下來就是如何解除掛載,其實也非常簡單

1.利用fusermount解除掛載
#fusermount -u mountpoint

arrow
arrow
    全站熱搜

    Aminzai 發表在 痞客邦 留言(1) 人氣()