Damn I love TRAMP. No, not the kind that hangs around on street corners asking for spare change but the Emacs extension that allows you to edit remote files locally.
To edit a (remote) file do C-x C-f
to open a new file and then type /ssh:<username>@<domain>:<path-to-file>