Colors are different when SSHing onto a Linux machine from iTerm2. How can I standardize them? Currently, when I SSH onto a Linux machine, the ls output colors and syntax coloring in VIM are different from the colors on my local machine. The colors shown are not defined in my Profile...Colors...ANSI Colors, and include an ugly dark brown color for "yellow." How can I force the text from a remote session to match my ANSI colors, so the coloring is always consistent?

Here's an example of what I'm talking about: left is VIM session on my local computer, right is VIM session within an SSH session. Notice the hideous brown.



And here's an example of the ls problem -- the colors are different.
The VIM part of this question was answered here.

Turns out my local session had background set to dark in VIM, and my remote session had background set to light. I just added the line set background=dark in my .vimrc and the colors now look identical.