ssh-keygen -y
Jump to navigation
Jump to search
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, -C|-p|-i|-y | -f | ~/.ssh/id_rsa|--help ] ~/.ssh/known_hosts, ssh-copy-id, Mlkem,~/.ssh/authorized_keys
Advertising: