When you connect via SSH from Mac OS to Linux, Vim runs on the Linux system, but you're interacting with it through the terminal emulator program on Mac OS. The SSH protocol (as the older telnet) is based on just exchanging pressed keys and printed output (which includes special control sequences to reposition the cursor, change colors and text attributes, but not font changes - there's only a single default font involved).
As you're running terminal Vim, not the graphical GVIM, the 'guifont'
option doesn't apply here. Instead, you need to configure the font in the Mac OS terminal emulator program (and that will then apply not only to Vim, but to any SSH connection to any remote computer).
Alternative
Linux systems use the X protocol for graphical programs. As this program is remotable, you can forward the user interface to another system, e.g. with ssh -X <hostname>
. This requires a running X environment on your (Mac OS) client. As the X protocol exchanges keypresses, mouse events, and graphical updates (like the Remote Desktop for Windows), here, the font settings are entirely determined by the Linux system, and 'guifont'
applies.