Difference between revisions of "Ssh-keygen -y"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
<code>[[ssh-keygen]] -y</code> reads a [[private key]] in OpenSSH format file and print an OpenSSH public key to stdout. | <code>[[ssh-keygen]] -y</code> reads a [[private key]] in OpenSSH format file and print an OpenSSH public key to stdout. | ||
+ | |||
+ | * Generate [[public key]] from [[private key]]: | ||
+ | ::<code>[[ssh-keygen -y]] -f ~/.ssh/id_rsa > ~./.ssh/id_rsa.pub</code> | ||
== See also == | == See also == |
Revision as of 13:52, 2 September 2021
ssh-keygen -y
reads a private key in OpenSSH format file and print an OpenSSH public key to stdout.
- Generate public key from private key:
ssh-keygen -y -f ~/.ssh/id_rsa > ~./.ssh/id_rsa.pub
See also
ssh-keygen
[-R
,-t
|-p
|-i
|-y | -f | ~/.ssh/id_rsa
|--help ] ~/.ssh/known_hosts
Advertising: