Difference between revisions of "Private key"
Jump to navigation
Jump to search
(21 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | * <code>[[ssh-keygen -y]]</code> | + | |
+ | Generate private and [[public key]] | ||
+ | * <code>[[ssh-keygen]]</code> | ||
+ | |||
+ | Generate [[public key]] based on private key in [[OpenSSH format]] | ||
+ | * <code>[[ssh-keygen -y]] -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub</code> | ||
+ | |||
+ | Change the [[passphrase]] of a private key | ||
* <code>[[ssh-keygen -p]]</code> | * <code>[[ssh-keygen -p]]</code> | ||
+ | |||
+ | Convert or import key: | ||
* <code>[[ssh-keygen -i]]</code> | * <code>[[ssh-keygen -i]]</code> | ||
+ | Connnect with specific private key: | ||
+ | * <code>[[ssh -i]]</code> | ||
+ | |||
+ | |||
+ | [[OpenSSL]]: | ||
+ | * <code>[[openssl genrsa]]</code> | ||
+ | |||
+ | == Related terms == | ||
+ | * [[Public key]] | ||
+ | * [[Apple Push Notification service (APNs) auth key]] | ||
+ | * <code>[[.p8]]</code> | ||
+ | * [[PKCS8]] | ||
+ | * <code>[[~/.ssh/config]]: [[IdentityFile]]</code> | ||
+ | * <code>[[chmod]]</code> | ||
+ | * <code>[[gsutil config -e]]</code> | ||
== See also == | == See also == |
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: