1

I have SSH access to an Ubuntu server. Now I'd like to edit the files in some folder like

/home/test

Is there any way that I can get an editor like Dreamweaver which can ssh to Ubuntu and files in that folder open up like FTP and I can edit and save them?

1
  • Your approach is asking for trouble. Dreamweaver makes me assume you want to edit live content of a web site. Don't do that. Make a difference between the stable version that goes live and development version. Use a source code management system that will allow you to undo things easily if you screw up something.
    – Anonymous
    Mar 3, 2010 at 10:09

2 Answers 2

1

Even better, since you have SSH access you most likely be able to use SFTP, which means you should be able to mount your home directory on the server server locally. That way you can directly edit the files on the server as if they were files on your local hard drive, kind of.

Since you are talking about Dreamweaver I assume you are running Windows on your desktop computer? In that case you might want to take a look at ExpanDrive, which will give you a remote SFTP connection mounted as a drive letter.

2
  • thanks buddy that worked , but how can i loo with root account , because on terminal i have to use sudo and then edit the file and save it. how should i do it now
    – John
    Mar 3, 2010 at 1:24
  • First of all, are you sure you need to mount using the root account? Another option might be to change the ownership of the folders you need to edit. That said, if you still need root login you can a) sudo password root b) place a ssh key inside /root/.ssh/authorized_keys
    – andol
    Mar 3, 2010 at 1:54
1

You can use WinSCP or FileZilla to access the file via SCP (and also maybe SFTP). You download the file on your machine then you can edit it with any editor your heart desires. Once you're done, all you have to do is upload it back onto the server.

On a side note, you should consider learning how to use VIM which is the standard for Unix text editing.

2
  • 2
    No, scp and sftp is not the same thing.
    – andol
    Mar 3, 2010 at 0:49
  • Indeed, but if one works, the other one will most likely work =) Mar 3, 2010 at 0:52

You must log in to answer this question.