adb shell --- error: device unauthorized.

手机设置:允许调试

root@kali:~# adb shell
error: device unauthorized.
This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
root@kali:~# rm .android/adbkey .android/adbkey.pub
root@kali:~# adb kill-server
root@kali:~# adb shell
shell@mb526:/ $ ls
acct
bootstrap
cache
...

原文地址:https://www.cnblogs.com/ztguang/p/12648865.html