Difference between revisions of "Ssh-keygen -y"
Jump to navigation
Jump to search
(Created page with " Read a private OpenSSH format file and print an OpenSSH public key to stdout. {{ssh-keygen}}") Tags: Mobile web edit, Mobile edit |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
+ | <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]]: | ||
+ | [[ssh-keygen -y]] -f ~/.ssh/id_rsa > ~/.ssh/id_rsa[[.pub]] | ||
+ | (no output) | ||
− | + | == Related == | |
+ | * [[Generate public key from private key]] | ||
+ | == See also == | ||
+ | * {{ssh-keygen}} | ||
− | + | [[Category:OpenSSH]] | |
+ | [[Category:ssh-keygen]] |
Latest revision as of 07:09, 15 February 2023
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 (no output)
Related[edit]
See also[edit]
ssh-keygen
[-R
,-t
|-p
|-i
|-y | -f | ~/.ssh/id_rsa
|--help ] ~/.ssh/known_hosts
Advertising: