6

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

The computer's RSA key fingerprint is:
FE:35:23:34:...

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?

Jonathan Cross
  • 261
  • 1
  • 9
  • You are using an USB connection. How likely is an interception attack on an USB cable? – Robert Sep 24 '20 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? – Jonathan Cross Sep 25 '20 at 16:32

1 Answers1

6

Per this answer:

awk '{print $1}' < ~/.android/adbkey.pub | base64 --decode | md5sum
Jonathan Cross
  • 261
  • 1
  • 9