https://wiki.openwrt.org/doc/howto/serial.console.password
Openwrt 串口默認是沒有密碼的。Openwrt啟動后,一個默認的密碼將被啟用去保護ssh登錄和頁面(http)登錄,而串口登錄密碼卻是空缺的。
將串口登錄加入密碼方法如下:
步驟一:配置busybox的登錄,可以在.config文件中添加如下
CONFIG_BUSYBOX_CONFIG_LOGIN=y
添加后,需要重新編譯busybox。
步驟二:修改/etc/inittab文件
將::askconsole:/bin/ash --login 用
::askconsole:/bin/login 替換。