Using SSH over Ethernet as Root account
Since software release VF2_515_v2.11.5, root account is no longer required for logging in Debian OS remotely. But if you still need to use the root account for privileged operations in remote access, follow the instructions in this topic.
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:
- Run the following command to configure the SSH
server:
~# echo 'PermitRootLogin=yes' >> /etc/ssh/sshd_config
- Restart the SSH
server:
~# systemctl restart sshd
- You will be able to use SSH login using the root account. The following output
indicates the login is
successful:
Result:
$ ssh root@192.168.1.172 root@192.168.1.172'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.1.130 root@starfive:~#