まずはsshキーを作成します

bash-3.2$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/kuro/.ssh/id_rsa): 
Created directory '/Users/kuro/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/kuro/.ssh/id_rsa.
Your public key has been saved in /Users/kuro/.ssh/id_rsa.pub.
The key fingerprint is:
10:ba:e7:a9:ca:14:0f:e1:18:23:b2:08:9e:b1:bb:69 kuro@kuro-no-macbook.local
The key's randomart image is:
      • [ RSA 2048]----+
.
. .
.. . .
*+. . .
+++ . . S
.+ o .
.. . o
Eo .
.oo..
                                    • +
bash-3.2$

ちなみに -t オプションで鍵の作成方法を指定できます。