为了减少ssh登录的时候输入密码的麻烦,配置公钥登录。自信满满的在/root/.ssh/authorized_keys加上自己的公钥,chmod 600 authorized_keys,这是基操。结果再次登录还是要输入密码,查看.ssh目录,权限是700,没错,有点怀疑人生。然后把authorized_keys放在/etc/dropbear目录,重启,再试,还是不行。这时无意看到/root目录的用户居然是dhcpcd!,把authorized_keys放回/root/.ssh 执行chown -R root:root /root,完事。这是在别的linux系统是想不到的,/root目录的用户属性居然是dhcpcd!!!!!
续:确认了该问题是由于我没有用root用户进行 build_milkv.sh有关,以后记得sudo
This is a companion discussion topic for the original entry at http://forum.sophgo.com/t/milkv-duo-ssh/234