LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Verify RSA public private key pair (https://www.linuxquestions.org/questions/linux-newbie-8/verify-rsa-public-private-key-pair-4175628796/)

krishnar 05-01-2018 01:56 PM

Verify RSA public private key pair
 
Hello Experts,

Is there anyway I check and verify the key pair matches correctly.

Code:

[user@server .ssh]$ ll | grep id
-rwx------. 1 user domain users  1743 Oct 26  2017 id_rsa
-rwx------. 1 user domain users  451 May  1 09:39 id_rsa.pub
[user@server .ssh]$

Any help would be appreciated!

tshikose 05-01-2018 02:17 PM

Try to use
Code:

ssh-keygen -y -e -m RFC4716 -f id_rsa
and compare the output brought in on long line to the significant part of id_rsa.pub


All times are GMT -5. The time now is 01:06 AM.