A40i buildroot2016 ssh远程登录sshd

tech2026-10-03  12

A40i ssh远程登录sshd_config配置:

免密方式:

vim /etc/ssh/sshd_config(buildroot-201611/dl/openssh-7.3p1/sshd_config)

PermitRootLogin yes //允许root登录

PasswordAuthentication yes //开启密码验证

PermitEmptyPasswords yes //允许空密码登录

加密方式:

vim /etc/ssh/sshd_config(buildroot-201611/dl/openssh-7.3p1/sshd_config)

PermitRootLogin yes //允许root登录

PasswordAuthentication yes //开启密码验证

PermitEmptyPasswords no //禁止空密码登录

开发板增加root用户密码后替换rootfs中的shadow:

passwd root =>输入root用户密码

adb pull /etc/shadow

cp shadow buildroot-201611/target/user_rootfs_extra/etc/shadow

遇到问题:

WARNING: Your password has expired. You must change your password now and login again!

                     1. 直接输入新root用户密码后再次使用ssh登录,输入新密码即可(按照以上方法解决后编译源码刷机后则不会遇到这个问题)。
最新回复(0)