Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DSA vs RSA: how can you tell

Does anyone have a tool to use in order to differentiate an RSA public key vs a DSA public key? I have two SSH .pub files and i need to know if they're RSA or DSA.

like image 858
jerle78 Avatar asked Oct 26 '25 16:10

jerle78


1 Answers

You can use ssh-keygen to get a fingerprint and type out of a .pub file:

ssh-keygen -lf id_rsa.pub
like image 176
user1338062 Avatar answered Oct 28 '25 06:10

user1338062