open remote file locally?

Doran L. Barton fozz at iodynamics.com
Tue Mar 20 23:35:13 MDT 2007


Not long ago, Wade Preston Shearer proclaimed...
>  Is it possible to open a file on remote server as if it were local?  
> For example, you can SSH into a different box and then read the  
> contents of a file with vi, but is there a way view the file in one  
> step without SSH-ing into the remote box first? Can this be done with  
> tunneling?

Gabe already mentioned the FUSE SSHFS method. I like it because it's nice
and transparent.

If you use vim (like a good little hacker), you can use the 'netrw'
functionality which has been included as a standard feature since vim v6...
even on Windows!

This lets you do things like this:

    vim scp://user@remote.host.name/path/to/file.pl

or:

    vim ftp://user@remote.host.name/path/to/file.c

This awesome little vim plugin gives you access to remote files via SCP,
SFTP, DAV, FTP, HTTP, RSYNC, and RCP (Why, diety-of-choice, WHY?!)

You can also browse remote directories with netrw too.

For more info: <http://vimdoc.sourceforge.net/htmldoc/pi_netrw.html>


-- 
fozz at iodynamics.com is Doran L. Barton, president/CTO, Iodynamics LLC
Iodynamics: IT and Web services by Linux/Open Source specialists
 "Do not turn upside down."
    -- Seen on the bottom of a prepackaged dessert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20070320/02bf107f/attachment.bin 


More information about the PLUG mailing list