Just tweaked, quite easy on a Mac. I used my web authoring app Coda to SFTP in and edit the file, then just SSH'd through the built in Terminal app. Coda costs $$ so alternatively you could use Filezilla or CyberDuck etc to SFTP in and and edit using TextWrangler, all are free.
The command to...