一旦ログアウト後、再度クライント側の端末コンソールからサーバに接続してみる。
“Are you sure you want to continue connecting (yes/no)?” で yes 応答、その後パスワードを入力すれば接続できる。
123456789101112131415
# ssh -p 9999 192.168.11.102
The authenticity of host '[192.168.11.102]:3701 ([192.168.11.102]:3701)' can't be established.
ECDSA key fingerprint is 94:d5:27:0c:d6:f0:0a:65:25:b5:05:0c:f9:82:92:54.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[192.168.11.102]:9999' (ECDSA) to the list of known hosts.
masaru@192.168.11.102's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Apr 30 23:34:48 2015
masaru@vbox:~$
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/masaru/.ssh/id_rsa): /home/masaru/.ssh/id_rsa_vbox_debian
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/masaru/.ssh/id_rsa_vbox_debian.
Your public key has been saved in /home/masaru/.ssh/id_rsa_vbox_debian.pub.
The key fingerprint is:
96:af:59:18:9c:a0:c2:da:86:7e:d7:24:05:d0:31:da masaru@p183
The key's randomart image is:
+--[ RSA 2048]-----------------------------------------+
| .oo. |
| oo. |
| . Eo |
| . . + o |
| o . . S |
| + . . o + |
|o o + . o |
|.. . . . + |
| .. . o |
+------------------------------------------------------+
# ssh -i ~/.ssh/id_rsa -p 9999 192.168.11.102
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Apr 30 23:44:20 2015 from 192.168.11.13
masaru@vbox:~$