I installed sshd in my Ubuntu 20.04 minimal desktop on Dell XPS 13 7390 laptop, through command
sudo apt install ssh.
And I used Xshell software on another physical machine in Windows 10 to SSH connect to my Ubuntu 20.04 desktop.
When my Ubuntu laptop is charged with external power supply, the SSH connection is good. But once the external power supply is cut, I lose the SSH connection to my Ubuntu laptop. If I give the external power supply back to the Ubuntu laptop, I can start another SSH connecting to my Ubuntu laptop successfully, and I do not have any operation on my Ubuntu laptop.
Is there something controlling the sshd daemon according to the real-time condition of external power supply? I want my Ubuntu laptop to turn sshd and other daemon always on, even the external power supply is cut. How to deal with it?