ssh用私钥生成公钥

问题描述: ssh秘钥对只剩下了私钥,如何用私钥来生成对应的公钥?
解决方案:用git bash输入 ssh-keygen指令

ssh-keygen -y -f [private-key-path] > [output-path]

例如:我有一个叫id_rsa的私钥,想用他生成id_rsa.pub公钥,则如下

 ssh-keygen -y -f id_rsa > id_rsa.pub


原文链接:https://blog.csdn.net/lxfHaHaHa/article/details/86619714

赞赏码

非学,无以致疑;非问,无以广识

原文地址:https://www.cnblogs.com/lxwphp/p/15452566.html