Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does anyone know of a good (hopefully free) tool that can be used to map a Linux server accessible over SSH/SCP as a Windows network drive?

EDIT: SFTP not supported

EDIT2: Windows File Sharing/Samba not supported

share|improve this question

migrated from stackoverflow.com Jun 2 '11 at 0:32

This question came from our site for professional and enthusiast programmers.

    
You need to be more explicit about what you want. SSH is a shell connections system, whereas Windows network drives are a way to do file sharing. What is it that you want? SMB over SSH? SFTP as a drive? SCP as a drive? –  Douglas Leeder Oct 9 '08 at 12:21
    
This doesn't answer your question, but FTPDrive maps a drive letter to a FTP or FTPS connection. FTPS appears to be FTP over SSL, and not the same as SFTP nor SCP. killprog.com/fdrve.html –  Chloe Jul 27 '12 at 3:47

14 Answers 14

Originally I recommended http://www.swish-sftp.org/. It adds an 'Other' Swish drive in which each folder is an SFTP connection however this can't be accessed in all applications such us Java based Eclipse IDE or Notepad++.

An alternative that works is http://www.eldos.com/sftp-net-drive/ or even runing Apache WebDAV (over SSL) as windows can natively map these drives - however at the moment I am yet to find a perfect solution.

share|improve this answer
2  
This won't work in Java or other program that can't access Windows Explorer. –  Chloe Jul 27 '12 at 3:56
1  
swish-ftp would not work for other programs but sftp-net-drive (the free version) is good enough ! –  Ashutosh Jindal May 28 '13 at 22:29

ExpanDrive.

As of 2008 I'm not aware of any solution that supports SCP, but there is a nasty horrible evil hack which should work (install Linux in a virtual machine, install sshfs, make a samba share, mount that on the host Windows machine).

You're probably better off just using WinSCP.

EDIT: there is now also https://www.eldos.com/sftp-net-drive/

share|improve this answer
    
Ouch. I just wanted a quick solution to access and read log files on one of the servers at work with a real time log viewer. –  Kristian Oct 9 '08 at 12:36
    
Is there no HTTP server software on the machines generating the logs? –  moonshadow Oct 9 '08 at 12:55
    
If the logs are being fed through syslog, you could configure it to push them out to your Windows machine. There are plenty of Windows syslog clients around. –  moonshadow Oct 9 '08 at 12:57
    
I need to do some coding on the remote machine and the ping is too high... I was considering this nasty evil hack too ... :) –  Quiark Feb 9 '09 at 21:06
    
I did forget to specify that this is commercial. –  sorin Sep 16 '09 at 11:44

Just follow instructions to use free PuTTY

share|improve this answer
5  
AIUI OP wants to map an actual SSH/SCP/SFTP server as a drive, not a samba share tunneled over SSH. –  moonshadow Oct 9 '08 at 12:21
    
I tried this, but I am having problems –  bobobobo Apr 14 '11 at 15:11

I think you're going to have to go back and re-evaluate your prior assumptions/designs.

I suggest:

  1. Scripting periodic fetches of the log-files with (p)scp.
  2. Performing the log analysis on your local drive.

Even if you find something that will map a drive to an scp connection, I doubt it will allow the live updating style that would be required for log monitoring, since I don't see how you would implement that with the underlying scp protocol.

Alternatively:

  1. Configure putty to write out a log file from the connection.
  2. Do tail -f in the putty connection.
  3. Do the log analysis against the putty log file.
share|improve this answer

There is a commercial tool called WebDrive which supports SCP, FTP, WebDAV.

share|improve this answer
    
My experience with WebDrive from South River is that everything has to be cached locally when it is accessed. I don't have enough space on my computer to do this. –  Gabriel Fair Feb 12 '12 at 1:32
1  
@GabrielFair you can choose not to do that. Or to set Multi-user caching option. –  Andras Gyomrey May 20 at 14:14
    
Also by default it only caches the files you access not everything on the drive –  Matthew Lock Jul 2 at 5:45

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

also check out Dokan

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

share|improve this answer
4  
Dokan is way too buggy (as any amateurish creation). –  Eugene Mayevski 'EldoS Corp May 19 '10 at 7:04

Any reason you can't just set up a samba share on the server?

share|improve this answer
    
I'd guess because the questionee can't install software on the remote machine - a web-host that allows SSH access, for example –  dbr Oct 9 '08 at 13:09
    
That, or setup SFTP (or just FTP) would be one option. The problem is that it's a bunch of servers we use for testing at work which no one seems to be responsible of. I was just looking for a quick and simple solution for the moment... –  Kristian Oct 9 '08 at 14:03
    
Samba would only be an option if the remote machine was located on his local network. If he's using ssh it most likely isn't. –  Adam Lassek Oct 10 '08 at 17:02

If you want to access and read server logs on a remote machine that is running an ssh server (daemon) you can use the free SSH tool PuTTY.

Just connect to the server, browse to the log file and view the log using a text editor such as 'Vi' or if you want to view it in real time use the command:

> tail -f /logdirectory/test.log
share|improve this answer
    
Yes, that is how I'm doing it at the moment. I'm looking for a way to use a more advanced log viewer similar to Chainsaw to analyze java log files in real time. –  Kristian Oct 9 '08 at 13:59
    
less can be used as a log viewer (press F to tail a file) and multitail is pretty advanced. –  ephemient Oct 9 '08 at 15:14

My initial thought was SSHFS, but that's for *nix-like OSes (Linux, BSD, Mac OS, etc).

For Windows, the option appears to be what @moonshadow suggested, SftpDrive.

If you have ssh running, you should have sftp available, as it runs over the standard ssh stack (especially if you're running OpenSSH as your daemon).

share|improve this answer
1  
Apparently not on this server, only the SCP option works with WinSCP –  Kristian Oct 9 '08 at 14:11
1  
Appears that's a "win-sshfs" that might work: digitalocean.com/community/tutorials/… though appears unmaintained now –  rogerdpack Nov 14 at 18:29

Dokan and DokanSSHFS.

I'm using it and it works.

When you want to create a new file system on Windows, for example to improve FAT or NTFS, you need to develop a file system driver. Developing a device driver that works in kernel mode on windows is extremely difficult.By using Dokan library, you can create your own file systems very easily without writing device driver. Dokan Library is similar to FUSE(Linux user mode file system) but works on Windows.

Dokan means ‘clay pipe’ in Japanese. The Dokan library works as a proxy and looks like a ‘pipe’.

share|improve this answer

You can use SftpDrive, http://www.magnetk.com/sftpdrive/.

However, this bug reported on their support forums makes it almost unusable for editing files with Emacs: http://getsatisfaction.com/magnetk/topics/file_changed_warning_from_emacs.

share|improve this answer

If you have Samba on your server, you can try this tutorial http://alirezabagheri.com/blog/?p=67

share|improve this answer

You can use Netdrive + Tunnelier ssh drive is read only

share|improve this answer

You can mount a drive over SSH using Windows built-in features, but it's a little involved. See:

http://smithii.com/map_a_network_drive_over_ssh_in_windows

share|improve this answer
1  
That's only to a remote Windows machine, and it has to have Cygwin sshd server running to accept ssh connections and tunnel Windows file sharing port 139 over the ssh connection. –  Chloe Jul 27 '12 at 3:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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