Friday, August 09, 2019

How do I mount a remote Linux folder in Windows through SSH?

How do I mount a remote Linux folder in Windows through SSH?

EmailThis Premium lets you save unlimited bookmarks, PDF, DOCX files, PPTs and images. It also gives you a PDF copy of every page that you save. Upgrade to Premium →

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.

Michael Haren

78.3k3838 gold badges152152 silver badges198198 bronze badges

asked Jan 14 '09 at 16:45

JaredJared

28.8k2727 gold badges101101 silver badges141141 bronze badges

closed as off topic by Bill the Lizard Oct 26 '11 at 2:07

Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

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.

answered Jan 14 '09 at 16:56

Sunny MilenovSunny Milenov

17.8k44 gold badges6868 silver badges9898 bronze badges

Dokan looks like a FUSE and sshfs implementation for Windows. If it works as expected and advertised, it would do exactly what you are looking for.

(Link updated and working 2015-10-15)

answered Jan 14 '09 at 16:59

matlimatli

14.7k66 gold badges3030 silver badges3535 bronze badges

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/

answered Jan 14 '09 at 17:03

neeshneesh

3,86755 gold badges2525 silver badges2929 bronze badges

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.

answered Jan 14 '09 at 16:48

Michael HarenMichael Haren

78.3k3838 gold badges152152 silver badges198198 bronze badges

I don't think you can mount a Linux folder as a network drive under windows having only access to ssh. I can suggest you to use WinSCP that allows you to transfer file through ssh and it's free.

EDIT: well, sorry. Vinko posted before me and now i've learned a new thing :)

answered Jan 14 '09 at 16:54

Stefano DriussiStefano Driussi

2,09811 gold badge1313 silver badges1919 bronze badges

Apparently the free NetDrive software from Novell can access SFTP file servers.

answered Jan 14 '09 at 17:03

AlnitakAlnitak

281k6363 gold badges355355 silver badges443443 bronze badges

Second David's answer below: I needed to mount a network drive automatically when users logged in. Dokan SSHFS is a nice tool, but wasn't reliable enough in this case. The copy of Netdrive I found didn't support SSHFS or sftp - not sure if a more recent one does.

The solution I'm trialling now involves adding a virtual network adapter (with file sharing disabled), using plink to open a tunnel via the new adapter to the remote machine running SAMBA, and mounting the network drive against the new adapter. There's another useful tutorial here http://www.blisstonia.com/eolson/notes/smboverssh.php.

The tunnel and network drive can be set up with a login script, so a few seconds after login users can use the mapped drive without needing to take any action.

answered Oct 19 '10 at 7:59

LeoLeo

87488 silver badges1111 bronze badges

Not the answer you're looking for? Browse other questions tagged linux shell ssh or ask your own question.

Source: https://stackoverflow.com/questions/443732/how-do-i-mount-a-remote-linux-folder-in-windows-through-ssh

Please check the attached file.

EmailThis was not able to extract useful content from the website. Hence, we have saved the webpage to a PDF file. You can find that attached along with this email.

Upgrade to Premium Plan

✔ Save unlimited bookmarks.

✔ Save PDFs, DOCX files, images and Excel sheets as email attachments.

✔ Get priority support and access to latest features.

Upgrade to Premium

No comments: