小米路由ssh秘钥登录

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