LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How can I edit files remotely from LAMP Ubuntu Server with Ubuntu Desktop? (http://www.linuxquestions.org/questions/linux-server-73/how-can-i-edit-files-remotely-from-lamp-ubuntu-server-with-ubuntu-desktop-846205/)

pyrospade 11-24-2010 01:49 AM

How can I edit files remotely from LAMP Ubuntu Server with Ubuntu Desktop?
 
I am sure this is merely a permissions issue, but unfortunately trying everything I can think of as well as google-ing has not provided me with a solution. Just for reference, my desktop and server are both running Ubuntu 10.04, with their respective Desktop and Server distributions.

I can remotely connect with SSH to my server, but I can't edit files (or at least the files I am trying to edit) remotely. I can connect remotely and edit them with VIM, but I would like to be able to use SciTE to modify the files. I am specifically trying to edit files under the /var/www directory, as well as the /etc/apache2/apache2.conf file.

Perhaps there is a better way of doing this or a concept I am missing altogether.

Once again, I appreciate your help and am open to feedback.

Guttorm 11-24-2010 05:05 AM

Hi

One solution can be to use sshfs. Then you can mount directories both ways and access the files like they were local (but of course slower). Just install it and "man sshfs" for details.

Ehtetur 11-25-2010 08:45 PM

Interesting. I don't know SciTE but if you can start the VI Editor over the SSH connection, you should also be able to start SciTE - unless it's a GUI-based utility...
If it is GUI-based, you will need to connect with the command ssh -X to start SciTE on the remote system.

pyrospade 11-27-2010 02:05 AM

Thanks for your help. What I do now is just use ssh to connect and modify anything there using vim. I still had the same problem with sshfs, but what DOES work is simply creating an alias pointing to a folder in /home and sshfs mounting that path. Thank you for your help!

peonuser 11-27-2010 03:07 AM

I do the same thing, but use sudo vim filename.


All times are GMT -5. The time now is 11:57 AM.