Using SSH over Ethernet as Root Account

After the new system is installed, the rejected connection denial appears when you try to log on to the Debian Linux server as a root user. Here is the example information:
$ ssh root@192.168.120.41
ssh: connect to host 192.168.120.41 port 22: Connection refused
To enable SSH root login, perform the following steps:
  1. Run the following command to configure the SSH server:
    echo 'PermitRootLogin=yes'  | sudo tee -a /etc/ssh/sshd_config
  2. Restart the SSH server:
    sudo systemctl restart sshd
    Result:

    You will be able to use SSH login using the root account. The following output indicates the login is successful:

    Example Output:

    $ ssh root@192.168.120.41
    root@192.168.120.41's password: 
    Linux starfive 5.15.0-starfive #1 SMP Fri Feb 24 03:26:44 EST 2023 riscv64
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Mon Feb 27 08:05:28 2023 from 192.168.120.130
    root@starfive:~#
  3. Login as root account using SSH as described in Using SSH over Ethernet.