tags:

views:

13054

answers:

11

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

+2  A: 

Just follow instructions to use free PuTTY

Tomasz Tybulewicz
AIUI OP wants to map an actual SSH/SCP/SFTP server as a drive, not a samba share tunneled over SSH.
moonshadow
+7  A: 

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.

moonshadow
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
Is there no HTTP server software on the machines generating the logs?
moonshadow
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
I need to do some coding on the remote machine and the ping is too high... I was considering this nasty evil hack too ... :)
Roman Plášil
I did forget to specify that this is *commercial*.
Sorin Sbarnea
A: 

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

tloach
I'd guess because the questionee can't install software on the remote machine - a web-host that allows SSH access, for example
dbr
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
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
+1  A: 

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
Abarax
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
`less` can be used as a log viewer (press F to tail a file) and `multitail` is pretty advanced.
ephemient
A: 

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

warren
Apparently not on this server, only the SCP option works with WinSCP
Kristian
+3  A: 

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.
Douglas Leeder
Ahh, how simple just to have putty log everything...
Kristian
A: 

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.

+1  A: 

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

Dokan is way too buggy (as any amateurish creation).
Eugene Mayevski 'EldoS Corp
+2  A: 

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

desolat
Not so cheap but very reliable and with a very useful caching mechanism.
Sorin Sbarnea
A: 

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

David
A: 

Dokan and DokanSSHFS.

I'm using it and it works.