$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/higa/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):← パスフレーズの入力
Enter same passphrase again:← パスフレーズの入力
Your identification has been saved in /home/higa/.ssh/id_rsa.
Your public key has been saved in /home/higa/.ssh/id_rsa.pub.
The key fingerprint is:
38:78:e0:60:68:bf:93:cc:58:78:e6:5e:38:89:15:1a higa@vmserver
パブリックキーのリモートマシンへのコピー
$ cd /home/ユーザ名/.ssh
$ scp id_rsa.pub xx.xx.xx.xx:"~"