How do I mount a remote Linux folder in Windows th

2020-02-07 14:23发布

I'm a blind student currently in a system admin/shell programming class. Although ssh works fine for executing commands like ls, pwd, etc editors do not work well with my screen reader and an ssh session. I was wondering if it is possible to mount a Linux folder over ssh so it appears as a windows drive? This way I could edit any files I needed to with accessible software and not have to constantly use SCP to send files back and fourth.

标签: linux shell ssh
10条回答
虎瘦雄心在
2楼-- · 2020-02-07 14:34

Take a look at CIFS (http://www.samba.org/cifs/). It is a virtual file system you can run on your linux machine that will allow you to mount folders on your linux machine in windows using SMB.

CIFS on linux information can be found here: http://linux-cifs.samba.org/

查看更多
一纸荒年 Trace。
3楼-- · 2020-02-07 14:39

You need to mount a remote share on your windows machine. This is what Samba/smb is for.

What you'll be doing is turning your Linux box into an SMB server, which lets it share files in a way that plays nice with Windows.

If you're not on the same network, you'll need to tunnel this through your SSH connection which may not be worth the effort.

查看更多
放荡不羁爱自由
4楼-- · 2020-02-07 14:42

The best an easiest solution I found is https://github.com/billziss-gh/sshfs-win, connected servers shows up as a fully functioning network drives. This is not a 'Dokany' or 'dokan' based solution which from experiance seems more stable and performant, also see WinFsp Performance Testing.

mount ssh on windows

Please note previously this answer stated, https://github.com/Foreveryone-cz/win-sshfs and before that http://www.swish-sftp.org/ but I no longer use any of them, first one stopped working second one created drives not fully supported in all programs.

查看更多
对你真心纯属浪费
5楼-- · 2020-02-07 14:43

check out Dokan

https://dokan-dev.github.io/

it's iffy, but it works, and it's free

查看更多
霸刀☆藐视天下
6楼-- · 2020-02-07 14:45

Back in 2002, Novell developed some software called NetDrive that can map a WebDAV, FTP, SFTP, etc. share to a windows drive letter. It is now abandonware, so it's no longer maintained (and not available on the Novell website), but it's free to use. I found quite a few available to download by searching for "netdrive.exe" I actually downloaded a few and compared their md5sums to make sure that I was getting a common (and hopefully safe) version.

Update 10 Nov 2017 SFTPNetDrive is the current project from the original netdrive project. And they made it free for personal use:

We Made SFTP Net Drive FREE for Personal Use

They have paid options as well on the website.

查看更多
一夜七次
7楼-- · 2020-02-07 14:47

Another, more Windows-y option (for $39) is http://www.expandrive.com/sftpdrive

查看更多
登录 后发表回答