HexisNou

dropbear copy public key

Feb 5th, 2022 (edited)
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. https://openwrt.org/docs/guide-user/security/dropbear.public-key.auth
  2.  
  3. Non-root users
  4. Add authentication keys for the current non-root user.
  5.  
  6. ssh openwrt.lan "mkdir -p ~/.ssh; tee -a ~/.ssh/authorized_keys" < ~/.ssh/id_ed25519.pub
  7. Disabling password authentication
  8. Harden security by disabling password authentication.
  9.  
  10. uci set dropbear.@dropbear[0].PasswordAuth="0"
  11. uci set dropbear.@dropbear[0].RootPasswordAuth="0"
  12. uci commit dropbear
  13. /etc/init.d/dropbear restart
Add Comment
Please, Sign In to add comment