How to repair syntax highlighting for nano under the ssh terminal on Mac OS X:
/bin/ls /usr/local/share/nano/*.nanorc | xargs -I {} echo 'include "{}"' >> ~/.nanorc
After you execute the command on the terminal everything works fine again. All of the colors will reappear.