This article describes the required steps for the initial configuration and usage of the built-in SSH server. In the following example it will be assumed that your device either has a working ADB USB interface or a working network connection with local IP address
> adb devices > adb root
> adb connect 192.168.0.100 > adb root
There are many different ways of logging into an SSH server, but for now emteria.OS only supports key-based authentication. This approach provides a simple, yet very secure way of remote control for your device.
> adb pull /data/ssh/ssh_host_rsa_key my_private_key > adb pull /data/ssh/ssh_host_rsa_key.pub my_public_key.pub
> adb push my_public_key.pub /data/ssh/authorized_keys
The ADB must be disabled in production devices, as it opens the possibility for attackers to control the system remotely. After setting up a secure SSH authentication, the ADB over Ethernet should be deactivated in Settings => Emteria.
> ssh -i my_private_key firstname.lastname@example.org rpi3:/ # id uid=0(root) gid=0(root) groups=0(root), context=u:r:sshd:s0