shfs 在本地挂载服务器      第一个地址是服务器地址,第二个地址是本地

sshfs -o cache=yes llx@192.;168.101.**:/home/llx/data/VOC2007-GW16-merge   /home/user/data/VOC2007

卸载:fusermount –u /home/user/data/VOC2007   或者:sudo umount -l /home/user/data/VOC2007

fusermount命令参数如下:

general options:

-o opt,[opt...]        mount options

-h   --help            print help

-V   --version         print version

SSHFS options:

-p PORT                equivalent to '-o port=PORT'

-C                     equivalent to '-o compression=yes' #启用压缩,建议配上

-F ssh_configfile      specifies alternative ssh configuration file #使用非默认的ssh配置文件

-1                     equivalent to '-o ssh_protocol=1' #不要用啊

-o reconnect           reconnect to server               #自动重连

-o delay_connect       delay connection to server

-o sshfs_sync          synchronous writes

-o no_readahead        synchronous reads (no speculative readahead) #提前预读

-o sshfs_debug         print some debugging information

-o cache=BOOL          enable caching {yes,no} (default: yes) #能缓存目录结构之类的信息

-o cache_timeout=N     sets timeout for caches in seconds (default: 20)

-o cache_X_timeout=N   sets timeout for {stat,dir,link} cache

-o workaround=LIST     colon separated list of workarounds

none             no workarounds enabled

all              all workarounds enabled

[no]rename       fix renaming to existing file (default: off)

[no]nodelaysrv   set nodelay tcp flag in sshd (default: off)

[no]truncate     fix truncate for old servers (default: off)

[no]buflimit     fix buffer fillup bug in server (default: on)

-o idmap=TYPE          user/group ID mapping, possible types are:  #文件权限uid/gid映射关系

none             no translation of the ID space (default)

user             only translate UID of connecting user

-o ssh_command=CMD     execute CMD instead of 'ssh'

-o ssh_protocol=N      ssh protocol to use (default: 2) #肯定要2的

-o sftp_server=SERV    path to sftp server or subsystem (default: sftp)

-o directport=PORT     directly connect to PORT bypassing ssh

-o transform_symlinks  transform absolute symlinks to relative

-o follow_symlinks     follow symlinks on the server

-o no_check_root       don't check for existence of 'dir' on server

-o password_stdin      read password from stdin (only for pam_mount)

-o SSHOPT=VAL          ssh options (see man ssh_config)

Module options:

[subdir]

-o subdir=DIR       prepend this directory to all paths (mandatory)

-o [no]rellinks     transform absolute symlinks to relative

[iconv]

#字符集转换,对我这种UTF8控,默认已经是最好的

-o from_code=CHARSET   original encoding of file names (default: UTF-8)

-o to_code=CHARSET      new encoding of the file names (default: UTF-8)

sshfs 挂载 卸载相关推荐

  1. sshfs挂载卸载命令

    sshfs -o nonempty root@192.168.1.85:/home/geshen/ /home/fulm 把 root@192.168.1.85:/home/geshen/挂载在本机的 ...

  2. 使用 SSHFS 挂载远程的 Linux 文件系统及目录

    使用 SSHFS 挂载远程的 Linux 文件系统及目录 | <Linux就该这么学> 什么是 SSHFS SSHFS(Secure SHell FileSystem)是一个客户端,可以让 ...

  3. Linux SSHFS挂载验证-两个虚拟机Linux系统之间

    由于在Linux板子之间实现NFS文件系统挂载实现较为困难,所以改为sshfs文件系统挂载,下面一步步探索sshfs挂载的流程和实验.首先在2个虚拟机Linux系统之间测试sshfs相互挂载,然后使用 ...

  4. 有跳板机时,如何使用sshfs挂载远程服务器文件夹

    有跳板机时,如何使用sshfs挂载远程服务器文件夹 因为之前是在windows下是使用一些软件连接远程服务器,软件可以自己帮我们挂载,即使需要用跳板机只需要手动点点配置就好了.今天突然碰到这个问题,电 ...

  5. linux挂载硬盘_CentOS「linux」学习笔记12:磁盘管理、分区挂载卸载操作

    linux基础操作:主要介绍了磁盘管理.分区挂载卸载操作. 特别说明linux中磁盘表现形式: IDE硬盘在linux中表示方式为"hdx".SCSI硬盘在linux中表示方式为& ...

  6. windows下sshfs挂载远程文件夹-server could not connect故障解决

    使用sshfs挂载server上面的文件夹到windows中.轻松方便. 在之前的系统上挂载.没出问题. 近期买了块固态硬盘.装了个系统. 结果在系统上执行sshfs时报例如以下错误: 事实上非常ea ...

  7. centos 卸载_CentOS「linux」学习笔记12:磁盘管理、分区挂载卸载操作

    linux基础操作:主要介绍了磁盘管理.分区挂载卸载操作. 特别说明linux中磁盘表现形式: IDE硬盘在linux中表示方式为"hdx".SCSI硬盘在linux中表示方式为& ...

  8. Linux无桌面环境下,实现USB的自动挂载/卸载

    Linux无桌面环境下,实现USB的自动挂载/卸载 1.gnome桌面环境如何实现USB的自动挂载 2.udev 3.单个设备自动挂载/卸载 4.usbmount工具实现自动挂载卸载 linux无桌面 ...

  9. linux 磁盘分区 挂载 卸载 常用命令

    一.挂载的概念和作用: 这个概念这位博主写的很好:https://blog.csdn.net/qq_39521554/article/details/79501714 1.Windows下,mount ...

最新文章

  1. 时间有限我长话短说:3060显卡免费送啦!
  2. java二叉排序树动态查找表_9.3.1动态查找表—二叉排序树
  3. python基础语法合集-Python基础语法(四)—列表、元组、字典、集合、字符串
  4. 《WCF技术剖析(卷2)》目录
  5. 8145v5 参数_如何估计模型中的参数
  6. 数据结构:超好用的数据结构与算法可视化工具(USFCA旧金山大学)
  7. linux 后端的进程,linux后台启动进程
  8. 刚刚,阿里云上线六大“战疫情”项目
  9. 谷歌能让死去的亲人继续活在网络世界,即便他们从来不上网
  10. 输入网址后,浏览器从访问服务器到呈现网页的过程
  11. javascript数据结构与算法---队列
  12. 如何在手机上查看APP原型
  13. java 对Excel 操作 例子(上)
  14. 什么是Winsock WSAData ?
  15. 泛微oa流程表单之HTML表单字段必填验证的添加与移除
  16. markdown java 代码高亮_Markdown 入门教程
  17. Electron 自定义托盘实战——桌面计算器
  18. 科学计算机常用按键,电脑计算器里面的“科学型”的里面所有的按键的功能
  19. thinkpad T480s使用体验
  20. 漫谈:一个工作两年半的程序员的人生感悟

热门文章

  1. 单引号双引号和三引号的区别
  2. idea switch 没有自动提示 Idea switch 语句设置自动提示 Idea 配置switch语句快捷键 swi idea常用快捷键设置
  3. Win10环境下CPU版本基于YOLOv5的行人检测研究(包括Anaconda安装超详细)
  4. android双网卡,指定发包网卡。
  5. python爬虫爬取网易云音乐歌曲_如何用爬虫获取网易云音乐歌单中的歌曲?
  6. 学好奥数必掌握的这4大方法!
  7. 参加《地下城与勇士》手游内测感受:等了五年竟还是页游水平?
  8. 关于使用Spring Cloud Gateway网关网络连接的4个重要的参数配置
  9. SpringBoot(二)Redis的使用
  10. linux poweroff 流程,Android poweroff 流程