| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | 
| public:macos10_openssh [2023/09/29 11:08]  – [1. How to generate your SSH private key and public key]  segawa | public:macos10_openssh [2023/09/29 11:27] (現在)  – [OpenSSH on macOS 13]  segawa | 
|---|
| ====== OpenSSH on macOS 13 ====== | ====== OpenSSH on macOS ====== | 
|  |  | 
| ==== 1. How to generate your SSH private key and public key ==== | ==== 1. How to generate your SSH private key and public key ==== | 
| On your macOS ''Terminal'' application, you type the command. | On your macOS ''Terminal'' application, you type the command. | 
| |<code>$ ssh-keygen -t ecdsa</code>| This command generates your SSH private key and public key of the ECDSA type.| | |macOS$ ''ssh-keygen -t ecdsa''| This command generates your SSH private key and public key of the ECDSA type.| | 
| |<code>Enter file in which to save the key (/Users/XXXX/.ssh/id_ecdsa):</code>|This inquiry is where your SSH key will be placed. Do not change.| | |<code>Enter file in which to save the key (/Users/XXXX/.ssh/id_ecdsa):</code>|This inquiry is where your SSH key will be placed. Do not change.| | 
| |<code>Enter passphrase (empty for no passphrase):</code>.|To prevent misuse of your SSH private key, please enter your passphrase in this query. This ''passphrase'' does not have to be the same as your login password.| | |<code>Enter passphrase (empty for no passphrase):</code>|To prevent misuse of your SSH private key, please enter your passphrase in this query. This ''passphrase'' does not have to be the same as your login password.| | 
|  |  | 
| Your SSH public key is ''$HOME/.ssh/id_ecdsa.pub''. | Your SSH public key is ''$HOME/.ssh/id_ecdsa.pub''. | 
| UseKeychain yes | UseKeychain yes | 
| AddKeysToAgent yes | AddKeysToAgent yes | 
| </code>Replace "XXXX" with your macOS username. | </code>Replace ''XXXX'' with your macOS username. | 
|  | The ''UseKeychain'' is for macOS only. | 
|  |  | 
| ---- | ---- | 
| * [[public:top|Public]] | * [[public:top|Public]] |