linux 安装sshfs

SSH is a secure remote connection protocol used to manage and get a shell from remote systems. SSH is mainly used by Linux distributions. SSH also provides a secure file share over the network which is names as SSHFS.

SSH是一种安全的远程连接协议,用于管理远程系统并从中获取外壳程序。 SSH主要由Linux发行版使用。 SSH还通过网络提供安全文件共享,名称为SSHFS。

为Linux安装SSHFS客户端 (Install SSHFS Client For Linux)

SSHFS is named as file system. We need to install SSHFS file system package for Linux systems.

SSHFS被命名为文件系统。 我们需要为Linux系统安装SSHFS文件系统软件包。

Ubuntu,Debian,Mint,Kali (Ubuntu, Debian, Mint, Kali)

$ sudo apt install sshfs

Install SSHFS Client For Linux
为Linux安装SSHFS客户端

CentOS,Fedora,RedHat (CentOS, Fedora, RedHat)

$ sudo yum install sshfs

为Windows安装SSHFS客户端 (Install SSHFS Client For Windows)

Windows provides different 3rd party applications those supports SSH and SSHFS. Here a list of them.

Windows提供了支持SSH和SSHFS的不同的第三方应用程序。 这里是他们的清单。

  • WinSCPWinSCP
  • SSHFSSSHFS
  • Dockany码头

In this tutorial, we will use the most popular one WinSCP. WinSCP can be downloaded from the following link and installed by Next->Next fashion.

在本教程中,我们将使用最受欢迎的WinSCP 。 可以从以下链接下载WinSCP,并通过Next > Next fashion安装。

https://github.com/dokan-dev/dokany/releases/download/v1.0.1/DokanSetup.exe

https://github.com/dokan-dev/dokany/releases/download/v1.0.1/DokanSetup.exe

https://github.com/Foreveryone-cz/win-sshfs/releases/download/1.6.1/WinSSHFS-1.6.1.13-devel.msi

https://github.com/Foreveryone-cz/win-sshfs/releases/download/1.6.1/WinSSHFS-1.6.1.13-devel.msi

挂载Linux (Mount For Linux)

Linux can mount SSHFS file systems in different ways. In this part, we will use sshfs command directly. We will provide the remote system IP address or hostname with the path we want to mount. We will also provide the local path we want to mount to. We can also use options about the SSHFS file system.

Linux可以通过不同方式挂载SSHFS文件系统。 在这一部分中,我们将直接使用sshfs命令。 我们将为远程系统IP地址或主机名提供要安装的路径。 我们还将提供要挂载到的本地路径。 我们还可以使用有关SSHFS文件系统的选项。

$ sudo sshfs [email protected]:/home/ismail /mnt

We will use sudo in order to mount to the /mnt. We will also provide remote user which is ismail in this case.

我们将使用sudo来挂载到/mnt 。 在这种情况下,我们还将提供ismail远程用户。

列出SSHFS挂载 (List SSHFS Mounts)

We can list all ready mounted SSHFS file systems with the mount command. We will filter with the grep file like below.

我们可以使用mount命令列出所有已安装的SSHFS文件系统。 我们将使用grep文件进行过滤,如下所示。

$ mount | grep sshfs

List SSHFS Mounts
列出SSHFS挂载

允许其他人读写SSHFS(Allow Others To Read and Write For SSHFS)

One of the most faced problems is writing to the SSHFS mounted directories. Because during mount we use sudo which will mount with the root privileges. This will cause other users cannot read or write to the mounted directories. We can use -o option with the allow_other to enable to read and write to the SSHFS mounted directories.

最面临的问题之一是写入SSHFS安装目录。 因为在挂载期间我们使用sudo ,它将以root特权挂载。 这将导致其他用户无法读取或写入安装的目录。 我们可以将-o选项与allow_other一起使用,以启用对SSHFS安装目录的读写操作。

$ sudo sshfs -o allow_other [email protected]:/home/ismail /mnt

提供SSH私钥进行身份验证 (Provide SSH Private Key For Authentication)

SSHFS service is provided over SSH port and uses SSH for authentication. SSH can authenticate users in different ways like password, private key etc. We can use a certificate in order to authenticate the user. In this example we will use IdentityFile option with the certificate path.

SSHFS服务通过SSH端口提供,并使用SSH进行身份验证。 SSH可以通过不同的方式(例如密码,私钥等)对用户进行身份验证。我们可以使用证书来对用户进行身份验证。 在此示例中,我们将使用IdentityFile选项和证书路径。

$ sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa [email protected]:/home/ismail /mnt

Windows安装 (Mount For Windows)

We will just provide the IP address or Host name, username and password for the SSHFS mmount. We can also change the drive letter where the remote system will be mount.

我们只提供SSHFS挂载的IP地址或主机名,用户名和密码。 我们还可以更改将挂载远程系统的驱动器号。

.uefc35168efddf136df5dd040ebcb55e0 , .uefc35168efddf136df5dd040ebcb55e0 .postImageUrl , .uefc35168efddf136df5dd040ebcb55e0 .centered-text-area { min-height: 80px; position: relative; } .uefc35168efddf136df5dd040ebcb55e0 , .uefc35168efddf136df5dd040ebcb55e0:hover , .uefc35168efddf136df5dd040ebcb55e0:visited , .uefc35168efddf136df5dd040ebcb55e0:active { border:0!important; } .uefc35168efddf136df5dd040ebcb55e0 .clearfix:after { content: ""; display: table; clear: both; } .uefc35168efddf136df5dd040ebcb55e0 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .uefc35168efddf136df5dd040ebcb55e0:active , .uefc35168efddf136df5dd040ebcb55e0:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .uefc35168efddf136df5dd040ebcb55e0 .centered-text-area { width: 100%; position: relative; } .uefc35168efddf136df5dd040ebcb55e0 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .uefc35168efddf136df5dd040ebcb55e0 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .uefc35168efddf136df5dd040ebcb55e0 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .uefc35168efddf136df5dd040ebcb55e0:hover .ctaButton { background-color: #E67E22!important; } .uefc35168efddf136df5dd040ebcb55e0 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .uefc35168efddf136df5dd040ebcb55e0 .uefc35168efddf136df5dd040ebcb55e0-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .uefc35168efddf136df5dd040ebcb55e0:after { content: ""; display: block; clear: both; }

LEARN MORE  How To Recover Data with ddrescue Command?

.uefc35168efddf136df5dd040ebcb55e0 , .uefc35168efddf136df5dd040ebcb55e0 .postImageUrl , .uefc35168efddf136df5dd040ebcb55e0 .centered-text-area { min-height: 80px; position: relative; } .uefc35168efddf136df5dd040ebcb55e0 , .uefc35168efddf136df5dd040ebcb55e0:hover , .uefc35168efddf136df5dd040ebcb55e0:visited , .uefc35168efddf136df5dd040ebcb55e0:active { border:0!important; } .uefc35168efddf136df5dd040ebcb55e0 .clearfix:after { content: ""; display: table; clear: both; } .uefc35168efddf136df5dd040ebcb55e0 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .uefc35168efddf136df5dd040ebcb55e0:active , .uefc35168efddf136df5dd040ebcb55e0:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .uefc35168efddf136df5dd040ebcb55e0 .centered-text-area { width: 100%; position: relative; } .uefc35168efddf136df5dd040ebcb55e0 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .uefc35168efddf136df5dd040ebcb55e0 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .uefc35168efddf136df5dd040ebcb55e0 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .uefc35168efddf136df5dd040ebcb55e0:hover .ctaButton { background-color: #E67E22!important; } .uefc35168efddf136df5dd040ebcb55e0 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .uefc35168efddf136df5dd040ebcb55e0 .uefc35168efddf136df5dd040ebcb55e0-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .uefc35168efddf136df5dd040ebcb55e0:after { content: ""; display: block; clear: both; }

了解更多信息如何使用ddrescue命令恢复数据?

Mount For Windows
Windows安装

UnMount对于Linux(UnMount For Linux)

We can unmount the SSHFS file system for Linux distributions. We just need to provide the path we have already mounted. In this example, we will unmount from /mnt with the umount command. Keep in mind that the mounted path shouldn’t be in use.

我们可以卸载Linux发行版的SSHFS文件系统。 我们只需要提供已经安装的路径即可。 在此示例中,我们将使用umount命令从/mnt umount 。 请记住,不应使用已安装的路径。

$ sudo umount /mnt

翻译自: https://www.poftut.com/how-to-mount-sshfs-on-linux-and-windows/

linux 安装sshfs

linux 安装sshfs_如何在Linux和Windows上安装SSHFS?相关推荐

  1. ubuntu19 安装git_如何在Ubuntu 20.04上安装Git

    Git是世界上最受欢迎的分布式版本控制系统,被许多开源和商业项目使用.它使您可以与其他开发人员在项目上进行协作,跟踪代码更改,还原到上一阶段,创建分支等. Git最初是由Linux内核的创建者Linu ...

  2. ubuntu安装ftp_如何在 Ubuntu 20.04 上安装 Webmin

    本文最先发布在: 如何在 Ubuntu 20.04 上安装 Webmin​www.itcoder.tech Webmin 是一个开源控制面板,它允许你通过简单易用的 Web 界面,就可以管理你的 Li ...

  3. webmin安装_如何在Ubuntu 18.04上安装Webmin

    webmin安装 Are you averse to running commands on a terminal and instead prefer managing your Linux sys ...

  4. python3怎么安装docx_如何在 Python 3.4 上安装 python-docx

    最近想通过 python 程序自动创建一个 word 文档,上网搜了下,有两种方法,一种是用 win32com 的方式,另外一种就是 python-docx 了,下面介绍下如何在 python 3.4 ...

  5. 安装oracle后在cmd,在WINDOWS上安装ORACLE RAC的注意事项

    在WINDOWS上安装ORACLE RAC的注意事项 1.检查防火墙和杀毒软件 如果不关掉防火墙,在安装CRS时,在"Oracle Clusterware Configuration Ass ...

  6. 怎样安装python在桌面_在Windows上安装和配置 Jupyter Lab 作为桌面级应用程序教程...

    什么是 Jupyter Lab Jupyter Lab 是 Jupyter notebook 的升级版,优点这里不作赘述. 一.安装 Jupyter Lab 如果你安装了 Anaconda,最新版的 ...

  7. php7安装flarum,如何在Ubuntu 18.04上安装Flarum社区软件

    如何在Ubuntu 18.04上安装Flarum社区软件 Flarum是一款用PHP和Mithril.js编写的免费开源软件. 它是一款简单,快速,美观且反应灵敏的软件,专门设计用于跨平台的一致性和直 ...

  8. linux skype安装路径,如何在Ubuntu 20.04上安装Skype

    Skype是世界上最受欢迎的通信应用程序之一.使用Skype,您可以拨打免费的在线音频和视频电话,以及拨打全球范围内的手机和固定电话的国际电话.本指南介绍了在Ubuntu 20.04上安装Skype的 ...

  9. surface pro linux服务器,【如何在surface pro 4上安装linux系统?】-看准网

    匿名用户 这里要更新一下关于secure boot的问题评论里有小伙伴指出现在基本不用关掉secure boot,用signed shim搞起就行,各个主流发行版文档如下https://docs.fe ...

  10. joomla linux 安装教程,如何在Ubuntu 18.04上安装Joomla内容管理系统

    在创建网站时,使网站正常运行的最简单方法之一是使用CMS(内容管理系统),该软件通常附带捆绑的PHP代码以及所需的所有主题和插件. 除WordPress外,另一个受欢迎的CMS是Joomla. Joo ...

最新文章

  1. Android用户界面开发(11):Menu
  2. webpack-plugin-webpack.DefinePlugin-应用全局变量,svn-rep-browser
  3. Mysql数据库(一)——mysql数据库初体验
  4. Dubbo源码-从HelloWorld开始
  5. 高精度(压位+判负数+加减乘+读写)
  6. java volatitl_Java中的关键字volatitle
  7. pandas 索引去重_Pandas 同元素多列去重的实例
  8. Tesseract-OCR图片识别为文字
  9. 大一计算机上机考试模拟试题,计算机等级考试二级上机模拟试题(1)
  10. mysql备份恢复_mysql常用的备份和恢复方法
  11. macbook运行移动硬盘中windows及bootcamp下载出错问题的解决
  12. iOS透明导航栏的平滑过渡(进阶版)
  13. 《影响中国大数据产业进程100人》 刘冬冬: 数据如何来支持新的商业战争
  14. 阿里P9大牛徒手编写的这份十亿级并发手册,教你彻底玩懂高并发,赶紧收藏
  15. Android PMS的理解
  16. 机器学习实战——人脸表情识别
  17. 2014年10月30日 1、完成AHC合并部分,调试通过代码
  18. 计算机访学面试,国家公派访问学者面试经典问题总结
  19. Spark 2.0的SparkSession详解
  20. Driver——同相运算放大器

热门文章

  1. Android获取定位信息LacCi值
  2. 防火墙工作在哪个层_Stratix 5950工业防火墙透明模式使用
  3. HR灵魂拷问:你真的会用excel吗?
  4. matlab匿名函数的基本使用
  5. ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法
  6. 可怕的不是堕落,而是清楚自己在堕落
  7. 帝国CMS内核在线听小说听书网源码
  8. java项目2小时写出黄金矿工经典小游戏
  9. 山东省教师职称评定取消计算机,2019年山东教师职称评审通知来了,正高级按岗核定,不再限指标...
  10. Android中Service的使用详解和注意点(LocalService)