Difference between revisions of "Private key"
Jump to navigation
Jump to search
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
+ | Generate private and [[public key]] | ||
+ | * <code>[[ssh-keygen]]</code> | ||
Generate [[public key]] based on private key in [[OpenSSH format]] | Generate [[public key]] based on private key in [[OpenSSH format]] | ||
− | * <code>[[ssh-keygen -y]]</code> | + | * <code>[[ssh-keygen -y]] -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub</code> |
Change the [[passphrase]] of a private key | Change the [[passphrase]] of a private key | ||
Line 8: | Line 13: | ||
Convert or import key: | Convert or import key: | ||
* <code>[[ssh-keygen -i]]</code> | * <code>[[ssh-keygen -i]]</code> | ||
+ | |||
+ | Connnect with specific private key: | ||
+ | * <code>[[ssh -i]]</code> | ||
Revision as of 09:00, 1 February 2023
Generate private and public key
Generate public key based on private key in OpenSSH format
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Change the passphrase of a private key
Convert or import key:
Connnect with specific private key:
Related terms
- Public key
- Apple Push Notification service (APNs) auth key
.p8
- PKCS8
~/.ssh/config: IdentityFile
chmod
gsutil config -e
See also
ssh-keygen
[-R
,-t
|-p
|-i
|-y | -f | ~/.ssh/id_rsa
|--help ] ~/.ssh/known_hosts
- Public key cryptography,
private key
,public key
,key length
,ssh-keygen
,ssh-keyscan
, Root certificate, KEX, Generate a key
Advertising: