How to properly configure Gnome as headless homeserver?

You are supposed to use Remote Login, not Desktop Sharing, see: