mac 挂载远程目录
使用 sshfs 很容易把服务器上远程目录挂载到本地操作,非常方便。
在 Mac OSX 使用 brew 很容易安装 sshfs
安装 brew 点击:http://brew.sh/index_zh-cn.html 或者把下面这个粘贴到终端就可以安装了
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
命令安装 sshfs
brew install sshfs
网站下载
下载:osxfuse-2.7.3.dmg http://osxfuse.github.io/
下载:sshfs-2.5.0.pkg https://github.com/osxfuse/sshfs/releases/
都安装了就搞定了。
使用 sshfs 挂载远程目录到本地:
sshfs -C -o reconnect user@host:dir localdir
更多 sshfs 的用法可以 sshfs -h 查看。