美文网首页
Mount Remote Folder as Local Fol

Mount Remote Folder as Local Fol

作者: chineshboy | 来源:发表于2017-06-12 15:53 被阅读0次

Installation

Mount a remote folder from a linux server to Mac requires two tools:

  1. osxfuse
  2. sshfs

To install osxfuse, use: brew cask install osxfuse.
To install sshfs, use: brew install sshfs.

Usage

Firstly, prepare a local empty folder.
Secondly, run the following command:
sshfs <username>@<server>:<remote_folder> <local_folder>
and type password if necessary.

For example, mount folder /home/data of user1 on s1.com to local folder lc1, we use:
sshfs user1@s1.com:/home/data lc1

Then you can see the local folder lc1 changed its appearance to something like:

(but the folder name is not changed)
You can now see and use the remote folder data inside lc1.

After using, just right-click the folder lc1 in Finder, and click eject.

相关文章

网友评论

      本文标题:Mount Remote Folder as Local Fol

      本文链接:https://www.haomeiwen.com/subject/bjblqxtx.html