When I try to enable USB debugging on my Android device, I am prompted with this message:

The computer's RSA key fingerprint is:

I see the public key in ~/.android/adbkey.pub

How can I verify that this RSA key fingerprint is correct on the computer's commandline?

Can I use adb?

  • You are using an USB connection. How likely is an interception attack on an USB cable?
    – Robert
    Commented Sep 24, 2020 at 15:10
  • @Robert Although the chances are slim, they are not zero. Given that Android developers chose to deliberately show a key fingerprint, it seems only logical to verify it before accepting, no? Are you saying verification is impossible? Commented Sep 25, 2020 at 16:32

1 Answer 1


Per this answer:

awk '{print $1}' < ~/.android/adbkey.pub | base64 --decode | md5sum

Not the answer you're looking for? Browse other questions tagged .