4 EnableSSHAtBoot - norikuro/Armadillo-IoT GitHub Wiki

4. How to enable ssh and root login at every boot

4-1. enable sshd at every boot.

cd atmark-dist-20160126/vendors/AtmarkTechno/Armadillo-IoTG-Std
vi Makefile

add $(ROMFSINST) -s /etc/init.d/sshd /etc/rc.d/S101sshd section after mountsd.sh line.

important: You need add "tab" before $(ROMFSINST).

    $(ROMFSINST) -s /etc/init.d/misc /etc/rc.d/S99misc
    [ "$(CONFIG_USER_FLATFSD_FLATFSD)" != "y" ] || \
    $(ROMFSINST) -s /etc/init.d/rc.local /etc/rc.d/S99rc.local
    $(ROMFSINST) -s /etc/init.d/mountsd.sh /etc/rc.d/S100mountsd.sh
    $(ROMFSINST) -s /etc/init.d/sshd /etc/rc.d/S101sshd

4-2. enable root login

cd atmark-dist-20160126/vendors/AtmarkTechno/Armadillo-IoTG-Std/etc/ssh
vi sshd_config

change PermitRootLogin section to yes

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6

save sshd_config