LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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,116

Rep: Reputation: 218Reputation: 218Reputation: 218
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: Atlanta, GA
Distribution: Red Hat Enterprise Linux, Scientific 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: 173
Blog Entries: 135

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 02:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration