Difference between revisions of "Ssh-keygen -y"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
* Generate [[public key]] from [[private key]]:
 
* Generate [[public key]] from [[private key]]:
  [[ssh-keygen -y]] -f ~/.ssh/id_rsa > ~./.ssh/id_rsa[[.pub]]
+
  [[ssh-keygen -y]] -f ~/.ssh/id_rsa > ~/.ssh/id_rsa[[.pub]]
 
  (no output)
 
  (no output)
  

Revision as of 09:00, 1 February 2023

ssh-keygen -y reads a private key in OpenSSH format file and print an OpenSSH public key to stdout.

ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
(no output)

See also

Advertising: