1.修改dropbear
目标文件:openwrt/package/network/services/dropbear/files/dropbear.config
config dropbear
option PasswordAuth 'on'
option RootPasswordAuth 'on'
option Port '22'
option Interface 'lan'
# option BannerFile '/etc/banner'
2.修改root密码
目标文件:openwrt/package/base-files/files/etc/shadow
加密后的一行root的密码粘贴进此文件,密码为123456
时,加密后应是
root:$1$BTkC8R/1$ZtNrYbhknXmNKGHDJCmJc1:15783:0:99999:7:::
网友评论