Mount Remote Folder as Local Folder on Mac

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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容