Thank you everyone, I solve it.
I connected to Ubuntu via SSH and ran command “w”.
Result:
13:29:49 up 36 days, 9 min, 2 users, load average: 0.10, 0.03, 0.02
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
iv :1 :1 Mon12 ?xdm? 18:26m 0.00s /usr/lib/gdm3/gdm-x-session –run-script env GNOME_SHE
iv pts/1 <macOS IP address is here> 13:29 1.00s 0.02s 0.00s w
And I noticed that my gdm-x-session is still running according to “?xdm?” value in IDLE field. So I killed this session by PID and reconnected successfully.
Hope, this may help somebody in the future.
P.S. to get PID ran:
who -uH
P.P.S to kill by PID ran:
sudo kill -HUP <PID is here>