Difference between revisions of "Public key cryptography"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
* <code> [[ssh-keygen]] -l -f /etc/ssh/ssh_host_XXXXkey.pub</code>
 
* <code> [[ssh-keygen]] -l -f /etc/ssh/ssh_host_XXXXkey.pub</code>
  
* Generate public key from [[private key]]:
+
Generate public key from [[private key]]:
<code>ssh-keygen -y -f ~/.ssh/id_rsa > ~./.ssh/id_rsa.pub</code>
+
* <code>ssh-keygen -y -f ~/.ssh/id_rsa > ~./.ssh/id_rsa.pub</code>
  
 
== Related terms ==
 
== Related terms ==

Revision as of 08:04, 9 November 2020

This article is a Draft. Help us to complete it.


Generate a public key from a PEM private key

  • openssl rsa -in mykey.pem -pubout > mykey.pub

Generate fingerpring

Generate public key from private key:

  • ssh-keygen -y -f ~/.ssh/id_rsa > ~./.ssh/id_rsa.pub

Related terms

See also

Advertising: