小米路由ssh秘钥登录
- 先ssh-keygen 生成密钥,(~/.ssh/id_rsa.pub)
- 小米路由器sshd服务叫做dropbear,
~/.ssh/id_rsa.pub
上传到/etc/dropbear/目录 - 更改id_rsa.pub名为authorized_keys,并chmod 600
- 重启dropbear服务/etc/init.d/dropbear restart
~/.ssh/id_rsa.pub
上传到/etc/dropbear/目录