For linux (Ubuntu, Debian, etc), different desktop environments cost different amounts of resources (RAM). Gnome and KDE tend to cost more RAM than others like XFCE / LXDE / LXQT:
https://unihost.com/help/how-to-choose-linux-desktop-environment-ram-usage/
I am wondering if I don't log in via the GUI of the desktop environment, and only use ssh to interact with the OS, do the RAM usages by these desktop environments still make a difference?
For example, I have a Debian Gnome and a Debian XFCE. After turning on the two machines, I only use SSH to interact with them. In this case, do they use the same amount of RAM?