On some OSes (for example ubuntu) when launching the gnome-session command you may receive the error
Could not acquire name on session bus
This error comes from the remote system failing to connect to the a lock file which is managing the session.
To solve this issue, edit the command to the following
unset DBUS_SESSION_BUS_ADDRESS; gnome-session
unsetting the DBUS_SESSION_BUS_ADDRESS will cause a different lock file to be created and then the session will launch properly