LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-24-2010, 01:49 AM   #1
pyrospade
LQ Newbie
 
Registered: Sep 2010
Posts: 17

Rep: Reputation: 0
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.
 
Old 11-24-2010, 05:05 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
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.
 
Old 11-25-2010, 08:45 PM   #3
Ehtetur
Member
 
Registered: Mar 2008
Location: Denver, CO
Distribution: Red Hat Enterprise Linux
Posts: 52

Rep: Reputation: 16
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.
 
Old 11-27-2010, 02:05 AM   #4
pyrospade
LQ Newbie
 
Registered: Sep 2010
Posts: 17

Original Poster
Rep: Reputation: 0
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!
 
Old 11-27-2010, 03:07 AM   #5
peonuser
Member
 
Registered: Mar 2008
Location: Where ever I am.
Distribution: Various
Posts: 177
Blog Entries: 172

Rep: Reputation: 21
I do the same thing, but use sudo vim filename.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't edit files while using ssh to remotely access linux server from a Windows comp soundersfc Linux - Newbie 3 10-11-2010 01:48 PM
LXer: LAMP Server with Ubuntu 9.10 LXer Syndicated Linux News 0 11-13-2009 02:40 PM
Unable to change/edit html files in new Ubuntu 9.04 / Apache server murphy-o Linux - Newbie 4 10-21-2009 11:18 PM
LXer: Installing LAMP Server Using TASKEL (desktop edition) in Ubuntu LXer Syndicated Linux News 0 11-22-2007 01:12 AM
UBUNTU 6.10 LAMP Server with KDE ? JohnnyUtah Ubuntu 2 02-15-2007 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration