如何测试公共/私人DSA密钥对? [英] How do you test a public/private DSA keypair?
本文介绍了如何测试公共/私人DSA密钥对?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
再次,这些是pub / key文件, DSA。
我真的会喜欢某种一行的单行...
解决方案
我发现一种似乎对我更好的方式:
ssh-keygen -y -f< ;私钥文件>
该命令将输出给定私钥的公钥,因此只需将输出与每个* .pub文件。
Is there an easy way to verify that a given private key matches a given public key? I have a few *.pub, and a few *.key files, and I need to check which go with which.
Again, these are pub/key files, DSA.
I would really prefer a one-liner of some sort...
解决方案
I found a way that seems to work better for me:
ssh-keygen -y -f <private key file>
that command will output the public key for the given private key, so then just compare the output to each *.pub file.
这篇关于如何测试公共/私人DSA密钥对?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文