Headless mac mini won't login automaticly
I have a 2018 Mac Mini running Catalina that I am using headless, via screen sharing on a 2009 vintage iMac running Snow Leopard. The mini has been set up for automatic login, under Users & Groups. However, whenever I try to connect to the Mini via screen sharing, I am still prompted for a password. I don't know if this problem is associated with the Mini or the iMac. Any assistance would be appreciated.
Mac mini, macOS 10.15