We are using Apalis i.MX8 and toradex reference multimedia image for development.
I am trying to find way to disable and enable ssh access of the board as and when required.
I tried to find any documentation for it but I could not find it this image.
I tried to check for ssh configuration files in /etc/ but could not find any config file.
Please share if there is any reference how can I disable/enable ssh access of the board.
Thanks for sharing your input. I tried this way on the device. But unforfunately there is no sshd.socket systemd unit available.
root@apalis-imx8-07106406:~# systemctl status sshd.socket
Unit sshd.socket could not be found.
root@apalis-imx8-07106406:~#
The file ssh_config is also not present.
root@apalis-imx8-07106406:~# ls /etc/ssh/sshd_config
ls: cannot access ‘/etc/ssh/sshd_config’: No such file or directory
root@apalis-imx8-07106406:~#
root@apalis-imx8-07106406:~#
We are using toradex reference multimedi image. Could you please share any other way to disable/enable ssh?
I tried to disable dropbear using systemctl,
but I am not able to disable dropbear.
root@apalis-imx8-07106406:~# systemctl status dropbear@
Failed to get properties: Unit name dropbear@.service is neither a valid invocation ID nor unit name.
root@apalis-imx8-07106406:~# systemctl status dropbear
Unit dropbear.service could not be found.
If you are not sure about exact service name, you can check for service using below command and once you get correct service name disable using systemctl.