Need GUI alternative to nano via ssh to edit css and php web files

2

In my job I am forced to using nano via ssh to edit css and php web files but I would rather use a modern GUI editor with code hints, color coding and easy cut and paste. I am really a designer but need to work on CSS files for drupal sites.

Is there any way to hook up a modern text editor through remote connection to server files via ssh?

howard

Posted 2011-05-03T00:32:33.710

Reputation: 21

1"Modern" does not have to be a GUI. Ask any vim or emacs user. – user1686 – 2011-05-03T05:11:01.470

Answers

3

Absolutely. If the server you're connecting to has an x server installed, you can use X forwarding to use a GUI text editor on the server itself. If you use linux on your client computer, try ssh -X <hostname and then start a GUI program (use an & after the command if you want the text editor to run in the background so you can keep using the console). If you're on Windows, find how to turn on X Forwarding in your SSH client (in PuTTY, it's under SSH -> X11), and then install Xming, an X server for Windows. Then you can use X forwarding the same as if you were on Linux.

If the server doesn't have an X server installed (virtually all server distros do, even though you don't normally use a GUI on them!), you can use a text editor with built-in SFTP (secure file transfer protocol) support like Komodo Edit. SFTP is functionality built in to SSH, so the server doesn't need any extra software.

jcrawfordor

Posted 2011-05-03T00:32:33.710

Reputation: 15 203

I am working from a Mac. Is there an equivalent to Comodo Edit for the Mac that I could use to edit files over ssh? – howard – 2011-05-05T04:54:41.347

I think textmate has this capability, although I'm not certain of that. – jcrawfordor – 2011-05-05T06:40:11.527