I have a server I can ssh into, and I am also running Ubuntu. How do I edit this remote file using any program I have installed on my local Ubuntu, without copying it to local, editing it, and copying it back?
Thanks!
|
I have a server I can ssh into, and I am also running Ubuntu. How do I edit this remote file using any program I have installed on my local Ubuntu, without copying it to local, editing it, and copying it back? Thanks! |
|||
|
|
|
If it's Ubuntu, then you probably have the full GNOME suite installed, along with GVFS. So you can use Places → Connect to Server to connect that server's filesystem as if were a local one. Or you can do this (which has the same effect): gvfs-mount sftp://hostname.domain.tld/ Then all remote files will be easily accessible. Unfortunately, not all programs directly support GVFS. You still can use this trick however, as GVFS is accessible by any program as a hidden directory |
|||
|
I use Install it, create a mount point and execute:
Now you can access the remote directory as a local one and you can use your text editor of choice. Moreover, as I said in this answer, I use Example: if you want to mount the directory
You can also mount the root of the pluto host with:
To automatize this process, you can add a row in
|
||||
|
|
|
Tramp node in emacs will do this easily: http://www.emacswiki.org/emacs/TrampMode |
|||
|
|