Does anyone know of a good (hopefully free) tool that can be used to map a SSH server as a Windows network drive (i.e. SCP)?

EDIT: SFTP not supported

EDIT2: Windows File Sharing/Samba not supported

link|improve this question

50% accept rate
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
feedback

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

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

17 Answers

SftpDrive.

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.

link|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 Sbarnea Sep 16 '09 at 11:44
feedback

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.
link|improve this answer
Ahh, how simple just to have putty log everything... – Kristian Oct 10 '08 at 17:47
feedback

The best an easiest solution I found is http://www.swish-sftp.org/.

It adds an 'Other' Swish drive in which each folder is an SFTP connection - pretty slick.

link|improve this answer
1  
This is better than I expected, works smoothly. – nimcap Nov 17 '11 at 12:01
feedback

Just follow instructions to use free PuTTY

link|improve this answer
1  
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
feedback

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

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

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

link|improve this answer
Not so cheap but very reliable and with a very useful caching mechanism. – Sorin Sbarnea Sep 21 '10 at 21:08
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 at 1:32
feedback

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

link|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
feedback

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
link|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
feedback

http://www.damtp.cam.ac.uk/user/jp107/xp-remote/ssh-map/

should work for Win XP or greater maybe 2000 as well. warning requires at least half a functioning brain cell to setup but completely free.

link|improve this answer
feedback

The best an easiest solution I found is http://www.swish-sftp.org/

It adds an 'Other' Swish drive in which each folder is an SFTP connection - pretty slick.

link|improve this answer
feedback

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).

link|improve this answer
1  
Apparently not on this server, only the SCP option works with WinSCP – Kristian Oct 9 '08 at 14:11
feedback

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Dokan and DokanSSHFS.

I'm using it and it works.

link|improve this answer
feedback

I think sshdrive is what you want and it's free

link|improve this answer
feedback

You can use Netdrive + Tunnelier ssh drive is read only

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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