ターミナル実行
ssh-keygen と打ち込む
Generating public/private rsa key pair. Enter file in which to save the key (/Users/chsh/.ssh/id_rsa):
とでてくるのでリターン。
Enter passphrase (empty for no passphrase):
と出てくるので、今回作る鍵そのもののためのパスワードとして入力。 空でもまあ大丈夫。ログインパスワードとは*違う*ものです。 鍵にアクセスするためのパスワードです。
Enter same passphrase again:
とでるので再度パスワードを入力。
Your identification has been saved in /Users/you/.ssh/id_rsa. Your public key has been saved in /Users/you/.ssh/id_rsa.pub. The key fingerprint is: <<>> The key's randomart image is: +--[ RSA 2048]----+ | .=+...o | | o .= o | | +..o | | . *o. | | + +So . | | + + ... | | + . | | . E | | | +-----------------+
みたいなのが出てくればOK
次に、
cat ~/.ssh/id_rsa.pub | pbcopy
と実行したあと、テキストエディタを立ち上げてcmd+vで貼り付け。
貼り付けた内容をメッセージなどでそのまま送る。