mac挂载远程服务器目录到本地

1. 安装brew,参考https://gitee.com/cunkai/HomebrewCN

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

选的清华大学下载源,下载完成后重启终端,或

source /Users/xxx/.zprofile

2.

brew install macfuse
brew install sshfs

但brew install sshfs出错,

Error: sshfs has been disabled because it requires closed-source macFUSE!

因此下载pkg安装

https://github.com/osxfuse/sshfs/releases

 3. 文件挂载

sshfs username@server:path local_path

4. 取消挂载

umount mount_path

其他参考https://www.jianshu.com/p/31205b26deff


版权声明:本文为m0_37733057原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。