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