22

我正在尝试使用 sshfs 挂载远程文件系统。我可以在网上找到的所有指南都说我需要将自己添加到保险丝组但是当我运行时

sudo gpasswd -a $USER fuse 

我明白了

gpasswd:/etc/group 中不存在组 'fuse'

但是当我运行时:

sudo apt-get install fuse

我明白了

fuse 已经是最新版本了。

我在 64 位上使用相对较新的 Ubuntu 15.10 安装。

谢谢你的帮助

4

1 回答 1

28

根据我的实验,挂载文件系统不需要fuse显式创建组并将用户添加到其中。ssh

总而言之,以下是从该页面复制的步骤:

  1. 安装sshfs
$ sudo apt-get install sshfs
[sudo] password for johndoe: 
Reading package lists... Done
[...]
Setting up sshfs (2.5-1ubuntu1) ...
  1. 创建本地挂载点

$ mkdir /home/johndoe/sshfs-path/

  1. 将远程文件夹挂载/remote/path/home/johndoe/sshfs-path/

$ sshfs remoteuser@111.222.333.444:/remote/path /home/johndoe/sshfs-path/

  1. 最后,要卸载...

$ fusermount -u /home/johndoe/sshfs-path/

于 2016-03-26T05:34:36.400 回答