Initially SSH for debian@.... then we can switch to root just ..by.. sudo su.
I use PockerBeagle and connect internet-over-USB. here are steps commands, which may help you.
=========
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: Tue Aug 18 12:27:01 2020 from 192.168.7.1
debian@beaglebone:~$ sudo su
[sudo] password for debian:
root@beaglebone:/home/debian#