Mount FTP Or SFTP As A Drive In Windows
Problem
I want to mount my folders from my webhost over sftp (ssh) on my Windows machine for free. Something like sshfs for Windows.
Discussion
Currently there is no single application that will let me mount an SFTP connection as a drive. There are however applications such as NetDrive, FTPDrive, etc which will let me mount an FTP connection as a drive. So all that’s left to do is create a FTP to SFTP bridge. What does that do you ask? That creates a FTP proxy to your SFTP connection. It will allow you to send your commands from the FTP server to the SFTP connection. There are two tools that stand out to create the bridge we need. The first is mindTerm, an open source solution written purely in java. The second is Tunnelier by Bitvise. I will be using mindTerm with NetDrive in my solution. If you have success with any other combination feel free to comment about your setup.
Solution
- Tools we will need
- mindTerm
- License: Free for personal use
- download link
- NetDrive
- License: Free for non-commercial home use
- download link
- mindTerm
- Download and extract mindTerm
- Run mindterm.jar (double click it if you can, otherwise in command prompt type in java -jar mindterm.jar)
- Type in the host you want to ssh into followed by the username and password
- In the menu click on Plugins>FTP To SFTP Bridge…
- Type in 127.0.0.1 for the Listen address
- Type in 21 for the Listen port
- Select the Remote system type
- Click Enable
- Click Dismiss
- Next we want to install NetDrive
- Once netdrive is installed, open it up, and click New Site on the bottom
- Type in localhost (or whatever you want to call it) for the Site name
- Type in localhost for the Site IP
- Type in 21 for the Port
- Select FTP for the Port
- Select a Drive letter
- Check Connect as anonymous
- Click Save
- Click Connect
- Click the X to close the window (will minimize to system tray)
There you have it! A SSH/SFTP connection as a drive in Windows. I have tested it in Windows Vista, however it should work just fine in Windows XP.
Filed Under: Miscellaneous
Tags: ftp, networking, sftp, ssh, virtual drive










Comments (11)
pic.micro23
June 30th, 2008 at 8:28 am
Not a free solution($29usd) but sftpdrive.com has what you need with a simple installation.
Lalit Kapoor
June 30th, 2008 at 2:56 pm
@pic.micro23: Actually, I had tried that a few months ago, but found it to be quite buggy. If they have released a new version I will give it another shot.
Jared
July 12th, 2008 at 8:24 pm
This is discontinued, but it looks like it might do what you’re looking for:
http://www.jscape.com./reddrive
Windows doesn’t appear to treat it exactly like a real drive (for instance, no letter assignment), but for most purposes I suspect it would be fine. (I tried it in XP.)
Bookmarks about Sftp
August 30th, 2008 at 10:01 am
[...] – bookmarked by 6 members originally found by kagome1000000 on 2008-08-10 Mount FTP Or SFTP As A Drive In Windows http://www.lalitkapoor.com/blog/2008/06/29/mount-ftp-or-sftp-as-a-drive-in-windows/ – bookmarked [...]
StephenB.
October 6th, 2008 at 9:55 pm
Hey,
Came across this site through Google, shortly before I found another way to do the same thing:
http://dokan-dev.net/en/download/
With the Dokan Library + the SSHFS component, it appears to let you directly mount a filesystem via SSH (also seems to be open source).
cb
November 12th, 2008 at 10:47 am
Dokan lib + SSHFS works quite nicely but ignores logical links on Linux. Hopefully that will be changed in a future release.
me
April 28th, 2009 at 12:53 pm
netdrive itself can access an sftp-server.
- in the ‘advanced’ section you can choose ’sftp’
Siva
June 10th, 2009 at 2:01 pm
Tried this, but still the password is sent in plain text.
Siva
June 10th, 2009 at 2:03 pm
netdrive has the sftp(ssh) option in advanced section, i tested (winxp sp3) that and its totally unstable
Lalit Kapoor
June 11th, 2009 at 12:47 am
Siva: StephenB’s comment may be the best alternative.
Stephanie
July 3rd, 2009 at 12:01 pm
Thank you so much! This worked perfectly for my needs.
Leave a reply